Class Settings


  • @Deprecated
    public class Settings
    extends Object
    Deprecated.
    This has been replaced with Spring-based configuration SettingsConfig and usage of Value to inject configurations. You can use @Value("${property}") as replacement.
    Convenience class to access Gemma properties defined in a resource. Methods will look in Gemma.properties, project.properties, build.properties and in the system properties.
    Author:
    pavlidis
    See Also:
    CompositeConfiguration
    • Constructor Detail

      • Settings

        public Settings()
        Deprecated.
    • Method Detail

      • getAnalysisStoragePath

        public static String getAnalysisStoragePath()
        Deprecated.
        Returns:
        The local directory where files generated by analyses are stored. It will end in a file separator ("/" on unix).
      • getAnalyticsKey

        public static String getAnalyticsKey()
        Deprecated.
      • getBigDecimal

        public static BigDecimal getBigDecimal​(String key)
        Deprecated.
      • getBigInteger

        public static BigInteger getBigInteger​(String key)
        Deprecated.
      • getBoolean

        public static boolean getBoolean​(String key)
        Deprecated.
      • getBoolean

        public static boolean getBoolean​(String key,
                                         boolean defaultValue)
        Deprecated.
      • getByte

        public static byte getByte​(String key)
        Deprecated.
      • getByte

        public static byte getByte​(String key,
                                   byte defaultValue)
        Deprecated.
      • getByte

        public static Byte getByte​(String key,
                                   Byte defaultValue)
        Deprecated.
      • getConfiguration

        public static org.apache.commons.configuration2.Configuration getConfiguration​(int index)
        Deprecated.
      • getDefaultSearchOperator

        public static String getDefaultSearchOperator()
        Deprecated.
      • getDouble

        public static double getDouble​(String key)
        Deprecated.
      • getDouble

        public static double getDouble​(String key,
                                       double defaultValue)
        Deprecated.
      • getDouble

        public static Double getDouble​(String key,
                                       Double defaultValue)
        Deprecated.
      • getDownloadPath

        public static String getDownloadPath()
        Deprecated.
        Returns:
        The local directory where files downloaded/uploaded are stored. It will end in a file separator ("/" on unix).
      • getFloat

        public static float getFloat​(String key)
        Deprecated.
      • getFloat

        public static float getFloat​(String key,
                                     float defaultValue)
        Deprecated.
      • getFloat

        public static Float getFloat​(String key,
                                     Float defaultValue)
        Deprecated.
      • getHostUrl

        public static String getHostUrl()
        Deprecated.
        Returns:
        host url e.g. http://gemma.msl.ubc.ca
      • getInMemoryConfiguration

        public static org.apache.commons.configuration2.Configuration getInMemoryConfiguration()
        Deprecated.
      • getInt

        public static int getInt​(String key)
        Deprecated.
      • getInt

        public static int getInt​(String key,
                                 int defaultValue)
        Deprecated.
      • getList

        public static List<?> getList​(String key)
        Deprecated.
      • getLong

        public static long getLong​(String key)
        Deprecated.
      • getLong

        public static long getLong​(String key,
                                   long defaultValue)
        Deprecated.
      • getLong

        public static Long getLong​(String key,
                                   Long defaultValue)
        Deprecated.
      • getNumberOfConfigurations

        public static int getNumberOfConfigurations()
        Deprecated.
      • getProperties

        public static Properties getProperties​(String key)
        Deprecated.
      • getProperty

        public static Object getProperty​(String key)
        Deprecated.
      • getShort

        public static short getShort​(String key)
        Deprecated.
      • getShort

        public static short getShort​(String key,
                                     short defaultValue)
        Deprecated.
      • getShort

        public static Short getShort​(String key,
                                     Short defaultValue)
        Deprecated.
      • getString

        public static String getString​(String key)
        Deprecated.
      • getString

        public static String getString​(String key,
                                       String defaultValue)
        Deprecated.
      • getStringArray

        public static String[] getStringArray​(String key)
        Deprecated.
      • setProperty

        public static void setProperty​(String key,
                                       Object value)
        Deprecated.
        Set an environment/application variable programatically.
        Parameters:
        key - key
        value - value
      • getResource

        public static Resource getResource​(String key)
        Deprecated.