|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.config.ExpandedConfigurationListenerAdapter
public class ExpandedConfigurationListenerAdapter
An ExpandedConfigurationListenerAdapter wraps an instance
of PropertyListener. When it receives the
property modification notification from the Apache Configuration,
it translates the ConfigurationEvent into the corresponding
events for PropertyListener.
It also has the capability to pause the event delivery through the setPauseListener(boolean) API.
This class is used as an adapter to attach a PropertyListener to a Configuration so that
methods in the PropertyListener will be called when there is a change in the configuration.
| Constructor Summary | |
|---|---|
ExpandedConfigurationListenerAdapter(PropertyListener listener)
Create a new ExpandedConfigurationListenerAdapter
that wraps the provided
PropertyListener. |
|
| Method Summary | |
|---|---|
void |
configurationChanged(org.apache.commons.configuration.event.ConfigurationEvent event)
|
boolean |
equals(java.lang.Object obj)
|
PropertyListener |
getListener()
Returns the wrapped PropertyListener. |
int |
hashCode()
|
static boolean |
isListenerPaused()
|
static void |
setPauseListener(boolean pauseListener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpandedConfigurationListenerAdapter(PropertyListener listener)
Create a new ExpandedConfigurationListenerAdapter
that wraps the provided
PropertyListener.
listener - to
wrap.
java.lang.NullPointerException - if the configuration or listener is
null.| Method Detail |
|---|
public static boolean isListenerPaused()
public static void setPauseListener(boolean pauseListener)
public PropertyListener getListener()
PropertyListener.
PropertyListener.public void configurationChanged(org.apache.commons.configuration.event.ConfigurationEvent event)
configurationChanged in interface org.apache.commons.configuration.event.ConfigurationListenerConfigurationListener.configurationChanged(ConfigurationEvent)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||