cz.cuni.amis.utils.configuration
Class PropertiesManager

java.lang.Object
  extended by 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.


Constructor Summary
PropertiesManager()
           
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Returns property for given key.
protected  java.util.List<PropertyProvider> getProvidersList()
           
protected  void logProvidersOrder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesManager

public PropertiesManager()
Method Detail

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