public final class WeakConfigListenerManager extends Object
Modifier and Type | Method and Description |
---|---|
static WeakConfigListenerManager |
of() |
void |
publishChangeEvent(PropertyChangeSet change)
Publishes a change event to all consumers registered.
|
void |
registerConsumer(Object instance,
PropertyChangeSetListener listener)
Registers the given consumer for the instance.
|
String |
toString() |
void |
unregisterConsumer(Object instance)
Unregisters all consumers for the given instance.
|
public static WeakConfigListenerManager of()
public void registerConsumer(Object instance, PropertyChangeSetListener listener)
instance
- the instance, not null.listener
- the consumer.public void unregisterConsumer(Object instance)
instance
- the instance, not null.public void publishChangeEvent(PropertyChangeSet change)
change
- the change event, not null.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.