com.netflix.config
Class ConfigurationBackedDynamicPropertySupportImpl

java.lang.Object
  extended by com.netflix.config.ConfigurationBackedDynamicPropertySupportImpl
All Implemented Interfaces:
DynamicPropertySupport

public class ConfigurationBackedDynamicPropertySupportImpl
extends java.lang.Object
implements DynamicPropertySupport


Constructor Summary
ConfigurationBackedDynamicPropertySupportImpl(org.apache.commons.configuration.AbstractConfiguration config)
           
 
Method Summary
 void addConfigurationListener(PropertyListener expandedConfigListener)
          Add the property change listener.
 org.apache.commons.configuration.AbstractConfiguration getConfiguration()
           
 java.lang.String getString(java.lang.String key)
          Get the string value of a given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationBackedDynamicPropertySupportImpl

public ConfigurationBackedDynamicPropertySupportImpl(org.apache.commons.configuration.AbstractConfiguration config)
Method Detail

getString

public java.lang.String getString(java.lang.String key)
Description copied from interface: DynamicPropertySupport
Get the string value of a given property. The string value will be further cached and parsed into specific type for DynamicProperty.

Specified by:
getString in interface DynamicPropertySupport
Parameters:
key - The name of the property
Returns:
The String value of the property

addConfigurationListener

public void addConfigurationListener(PropertyListener expandedConfigListener)
Description copied from interface: DynamicPropertySupport
Add the property change listener. This is necessary for the DynamicProperty to receive callback once a property is updated in the underlying DynamicPropertySupport

Specified by:
addConfigurationListener in interface DynamicPropertySupport
Parameters:
expandedConfigListener - Listener to be added to DynamicPropertySupport

getConfiguration

public final org.apache.commons.configuration.AbstractConfiguration getConfiguration()