cz.cuni.amis.utils.configuration
Class PropertiesManager
java.lang.Object
cz.cuni.amis.utils.configuration.PropertiesManager
public class PropertiesManager
- extends java.lang.Object
Root object for obtaining property values. Properties are obtained from a chain
of PropertyProviders. PropertyProviders are loaded through SPI.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesManager
public PropertiesManager()
getProvidersList
protected java.util.List<PropertyProvider> getProvidersList()
logProvidersOrder
protected void logProvidersOrder()
getProperty
public java.lang.String getProperty(java.lang.String key)
- Returns property for given key.
Asks property providers ordered by their priority. When first of them
returns a value then it will be returned and later providers wont be asked.
- Parameters:
key
-
- Returns:
- null if the property value wasn't found