cz.cuni.amis.utils.configuration
Class PropertiesManager
java.lang.Object
cz.cuni.amis.utils.configuration.PropertiesManager
public class PropertiesManager
- extends Object
Root object for obtaining property values. Properties are obtained from a chain
of PropertyProviders. PropertyProviders are loaded through SPI.
- Author:
- ik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesManager
public PropertiesManager()
getProvidersList
protected List<PropertyProvider> getProvidersList()
logProvidersOrder
protected void logProvidersOrder()
getProperty
public String getProperty(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
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.