com.netflix.config
Interface DynamicPropertySupport

All Known Implementing Classes:
ConfigurationBackedDynamicPropertySupportImpl

public interface DynamicPropertySupport

The interface that defines the contract between DynamicProperty and its underlying support system.

In most cases, it will be much easier to use Apache Commons Configuration to support DynamicProperty. However, this interface makes it possible for DynamicProperty to work without relying on Apache Commons Configuration.


Method Summary
 void addConfigurationListener(PropertyListener expandedPropertyListener)
          Add the property change listener.
 java.lang.String getString(java.lang.String propName)
          Get the string value of a given property.
 

Method Detail

getString

java.lang.String getString(java.lang.String propName)
Get the string value of a given property. The string value will be further cached and parsed into specific type for DynamicProperty.

Parameters:
propName - The name of the property
Returns:
The String value of the property

addConfigurationListener

void addConfigurationListener(PropertyListener expandedPropertyListener)
Add the property change listener. This is necessary for the DynamicProperty to receive callback once a property is updated in the underlying DynamicPropertySupport

Parameters:
expandedPropertyListener - Listener to be added to DynamicPropertySupport