|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.config.AbstractDynamicPropertyListener
public abstract class AbstractDynamicPropertyListener
An abstract PropertyListener
for use by different
components who need to listen for configuration changes. Users only need to
implement the handlePropertyEvent(String, Object, EventType)
method.
Nested Class Summary | |
---|---|
static class |
AbstractDynamicPropertyListener.EventType
|
Constructor Summary | |
---|---|
AbstractDynamicPropertyListener()
|
Method Summary | |
---|---|
void |
addProperty(java.lang.Object source,
java.lang.String name,
java.lang.Object value,
boolean beforeUpdate)
Notifies this listener about a new value for the given property. |
void |
clear(java.lang.Object source,
boolean beforeUpdate)
Notifies this listener that all properties have been cleared. |
void |
clearProperty(java.lang.Object source,
java.lang.String name,
java.lang.Object value,
boolean beforeUpdate)
Notifies this listener about a cleared property, which now has no value. |
void |
configSourceLoaded(java.lang.Object source)
Notifies this listener about a new source of configuration being invalidated and/or added |
abstract void |
handlePropertyEvent(java.lang.String name,
java.lang.Object value,
AbstractDynamicPropertyListener.EventType eventType)
|
void |
setProperty(java.lang.Object source,
java.lang.String name,
java.lang.Object value,
boolean beforeUpdate)
Notifies this listener about a changed value for the given property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDynamicPropertyListener()
Method Detail |
---|
public void addProperty(java.lang.Object source, java.lang.String name, java.lang.Object value, boolean beforeUpdate)
PropertyListener
Notifies this listener about a new value for the given property.
addProperty
in interface PropertyListener
source
- the event source.name
- the property name.value
- the property value (current value if
beforeUpdate
is true, otherwise the new value).beforeUpdate
- true if this callback is occuring before the
property has changed.public void clear(java.lang.Object source, boolean beforeUpdate)
PropertyListener
Notifies this listener that all properties have been cleared.
clear
in interface PropertyListener
source
- the event source.beforeUpdate
- true if this callback is occuring before the
properties have been cleared.public void clearProperty(java.lang.Object source, java.lang.String name, java.lang.Object value, boolean beforeUpdate)
PropertyListener
Notifies this listener about a cleared property, which now has no value.
clearProperty
in interface PropertyListener
source
- the event source.name
- the property name.value
- the property value (current value if
beforeUpdate
is true, otherwise the new value which
should be null
).beforeUpdate
- true if this callback is occuring before the
property has changed.public void configSourceLoaded(java.lang.Object source)
PropertyListener
Notifies this listener about a new source of configuration being invalidated and/or added
configSourceLoaded
in interface PropertyListener
source
- the event source.public void setProperty(java.lang.Object source, java.lang.String name, java.lang.Object value, boolean beforeUpdate)
PropertyListener
Notifies this listener about a changed value for the given property.
setProperty
in interface PropertyListener
source
- the event source.name
- the property name.value
- the property value (current value if
beforeUpdate
is true, otherwise the replacement
value).beforeUpdate
- true if this callback is occuring before the
property has changed.public abstract void handlePropertyEvent(java.lang.String name, java.lang.Object value, AbstractDynamicPropertyListener.EventType eventType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |