|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyListener
Listener that handles property event notifications. It handles events to add a property, set property, remove property, load and clear of the configuration source.
DynamicPropertySupport
registers this type listener with a DynamicPropertySupport
to receive
callbacks on changes so that it can dynamically change a value of a DynamicProperty.
DynamicPropertySupport.addConfigurationListener(PropertyListener)
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 |
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. |
Method Detail |
---|
void configSourceLoaded(java.lang.Object source)
Notifies this listener about a new source of configuration being invalidated and/or added
source
- the event source.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.
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.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.
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.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.
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.void clear(java.lang.Object source, boolean beforeUpdate)
Notifies this listener that all properties have been cleared.
source
- the event source.beforeUpdate
- true if this callback is occuring before the
properties have been cleared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |