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 configurationSettingsConfigand usage ofValueto 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 StringgetAnalysisStoragePath()Deprecated.static StringgetAnalyticsKey()Deprecated.static BigDecimalgetBigDecimal(String key)Deprecated.static BigDecimalgetBigDecimal(String key, BigDecimal defaultValue)Deprecated.static BigIntegergetBigInteger(String key)Deprecated.static BigIntegergetBigInteger(String key, BigInteger defaultValue)Deprecated.static booleangetBoolean(String key)Deprecated.static booleangetBoolean(String key, boolean defaultValue)Deprecated.static BooleangetBoolean(String key, Boolean defaultValue)Deprecated.static bytegetByte(String key)Deprecated.static bytegetByte(String key, byte defaultValue)Deprecated.static BytegetByte(String key, Byte defaultValue)Deprecated.static org.apache.commons.configuration2.ConfigurationgetConfiguration(int index)Deprecated.static StringgetDefaultSearchOperator()Deprecated.static doublegetDouble(String key)Deprecated.static doublegetDouble(String key, double defaultValue)Deprecated.static DoublegetDouble(String key, Double defaultValue)Deprecated.static StringgetDownloadPath()Deprecated.static floatgetFloat(String key)Deprecated.static floatgetFloat(String key, float defaultValue)Deprecated.static FloatgetFloat(String key, Float defaultValue)Deprecated.static StringgetHostUrl()Deprecated.static org.apache.commons.configuration2.ConfigurationgetInMemoryConfiguration()Deprecated.static intgetInt(String key)Deprecated.static intgetInt(String key, int defaultValue)Deprecated.static IntegergetInteger(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 longgetLong(String key)Deprecated.static longgetLong(String key, long defaultValue)Deprecated.static LonggetLong(String key, Long defaultValue)Deprecated.static intgetNumberOfConfigurations()Deprecated.static PropertiesgetProperties(String key)Deprecated.static PropertiesgetProperties(String key, Properties defaults)Deprecated.static ObjectgetProperty(String key)Deprecated.static ResourcegetResource(String key)Deprecated.static shortgetShort(String key)Deprecated.static shortgetShort(String key, short defaultValue)Deprecated.static ShortgetShort(String key, Short defaultValue)Deprecated.static StringgetString(String key)Deprecated.static StringgetString(String key, String defaultValue)Deprecated.static String[]getStringArray(String key)Deprecated.static voidsetProperty(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
-
-