Package ubic.basecode.util
Class Configuration
- java.lang.Object
-
- ubic.basecode.util.Configuration
-
public class Configuration extends Object
Configuration of ontology services and other things.Configurations are retrieved from three locations: properties set at runtime with
setString(String, String)
, system properties and a default properties file namedbasecode.properties
at the root of the classpath in that order.Properties set via system properties must be prefixed with
basecode.
to be considered.Properties set at runtime can be reset with
reset()
andreset(String)
.- Author:
- paul
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Boolean
getBoolean(String key)
Obtain a boolean configuration value by key.static String
getString(String key)
Obtain a configuration value by key.static void
reset()
Reset all configurations set at runtime.static void
reset(String key)
Reset a specific configuration by key.static void
setString(String key, String value)
Set a configuration by key.
-
-
-
Method Detail
-
getString
@Nullable public static String getString(String key)
Obtain a configuration value by key.
-
getBoolean
@Nullable public static Boolean getBoolean(String key)
Obtain a boolean configuration value by key.- See Also:
Boolean.parseBoolean(String)
-
reset
public static void reset()
Reset all configurations set at runtime.
-
reset
public static void reset(String key)
Reset a specific configuration by key.
-
-