public final class ConfigEvent extends Object
PropertySource
and Configuration
.Modifier and Type | Method and Description |
---|---|
static <T> void |
addListener(ConfigEventListener<T> l)
Add a listener for observing change events on
Configuration . |
static void |
fireEvent(Object event)
Publishes sn event to all interested listeners.
|
static <T> void |
fireEvent(T event,
Class<T> eventType)
Publishes a
ConfigurationChange to all interested listeners. |
static <T> void |
removeListener(ConfigEventListener<T> l)
Add a listener for observing change events on
PropertySource . |
public static <T> void addListener(ConfigEventListener<T> l)
Configuration
. References of this
component to the listeners must be managed as weak references.l
- the listener not null.public static <T> void removeListener(ConfigEventListener<T> l)
PropertySource
. References of this
component to the listeners must be managed as weak references.l
- the listener not null.public static void fireEvent(Object event)
event
- the event, not null.public static <T> void fireEvent(T event, Class<T> eventType)
ConfigurationChange
to all interested listeners.event
- the event, not null.eventType
- the event type, the vent may be a subclass.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.