cz.cuni.amis.utils.configuration
Class PropertiesManager

Package class diagram package PropertiesManager
java.lang.Object
  extended by 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

Constructor Summary
PropertiesManager()
           
 
Method Summary
 String getProperty(String key)
          Returns property for given key.
protected  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 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.