Package ubic.gemma.persistence.util
Class Settings
- java.lang.Object
-
- ubic.gemma.persistence.util.Settings
-
@Deprecated public class Settings extends Object
Deprecated.This has been replaced with Spring-based configurationSettingsConfig
and usage ofValue
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 Summary
Constructors Constructor Description Settings()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getAnalysisStoragePath()
Deprecated.static String
getAnalyticsKey()
Deprecated.static BigDecimal
getBigDecimal(String key)
Deprecated.static BigDecimal
getBigDecimal(String key, BigDecimal defaultValue)
Deprecated.static BigInteger
getBigInteger(String key)
Deprecated.static BigInteger
getBigInteger(String key, BigInteger defaultValue)
Deprecated.static boolean
getBoolean(String key)
Deprecated.static boolean
getBoolean(String key, boolean defaultValue)
Deprecated.static Boolean
getBoolean(String key, Boolean defaultValue)
Deprecated.static byte
getByte(String key)
Deprecated.static byte
getByte(String key, byte defaultValue)
Deprecated.static Byte
getByte(String key, Byte defaultValue)
Deprecated.static org.apache.commons.configuration2.Configuration
getConfiguration(int index)
Deprecated.static String
getDefaultSearchOperator()
Deprecated.static double
getDouble(String key)
Deprecated.static double
getDouble(String key, double defaultValue)
Deprecated.static Double
getDouble(String key, Double defaultValue)
Deprecated.static String
getDownloadPath()
Deprecated.static float
getFloat(String key)
Deprecated.static float
getFloat(String key, float defaultValue)
Deprecated.static Float
getFloat(String key, Float defaultValue)
Deprecated.static String
getHostUrl()
Deprecated.static org.apache.commons.configuration2.Configuration
getInMemoryConfiguration()
Deprecated.static int
getInt(String key)
Deprecated.static int
getInt(String key, int defaultValue)
Deprecated.static Integer
getInteger(String key, Integer defaultValue)
Deprecated.static Iterator<String>
getKeys()
Deprecated.static Iterator<String>
getKeys(String key)
Deprecated.static List<?>
getList(String key)
Deprecated.static List<?>
getList(String key, List<Object> defaultValue)
Deprecated.static long
getLong(String key)
Deprecated.static long
getLong(String key, long defaultValue)
Deprecated.static Long
getLong(String key, Long defaultValue)
Deprecated.static int
getNumberOfConfigurations()
Deprecated.static Properties
getProperties(String key)
Deprecated.static Properties
getProperties(String key, Properties defaults)
Deprecated.static Object
getProperty(String key)
Deprecated.static Resource
getResource(String key)
Deprecated.static short
getShort(String key)
Deprecated.static short
getShort(String key, short defaultValue)
Deprecated.static Short
getShort(String key, Short defaultValue)
Deprecated.static String
getString(String key)
Deprecated.static String
getString(String key, String defaultValue)
Deprecated.static String[]
getStringArray(String key)
Deprecated.static void
setProperty(String key, Object value)
Deprecated.Set an environment/application variable programatically.
-
-
-
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.
-
getBigDecimal
public static BigDecimal getBigDecimal(String key, BigDecimal defaultValue)
Deprecated.
-
getBigInteger
public static BigInteger getBigInteger(String key)
Deprecated.
-
getBigInteger
public static BigInteger getBigInteger(String key, BigInteger defaultValue)
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.
-
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.
-
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.
-
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.
-
getLong
public static long getLong(String key)
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.
-
getProperties
public static Properties getProperties(String key, Properties defaults)
Deprecated.
-
getShort
public static short getShort(String key)
Deprecated.
-
getShort
public static short getShort(String key, short defaultValue)
Deprecated.
-
setProperty
public static void setProperty(String key, Object value)
Deprecated.Set an environment/application variable programatically.- Parameters:
key
- keyvalue
- value
-
-