Package ubic.basecode.util
Class Configuration
java.lang.Object
ubic.basecode.util.Configuration
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 named basecode.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()
and reset(String)
.
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Boolean
getBoolean
(String key) Obtain a boolean configuration value by key.static @Nullable String
Obtain a configuration value by key.static void
reset()
Reset all configurations set at runtime.static void
Reset a specific configuration by key.static void
Set a configuration by key.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getString
Obtain a configuration value by key. -
getBoolean
Obtain a boolean configuration value by key.- See Also:
-
setString
Set a configuration by key. -
reset
public static void reset()Reset all configurations set at runtime. -
reset
Reset a specific configuration by key.
-