public class EventManager
extends java.lang.Object
PropertyChangeSupport internally.
Modules can register PropertyChangeListener to listen
for specific Events which are called by the ADV framework.
| Constructor | Description |
|---|---|
EventManager() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
fire(ADVEvent event,
java.lang.Object oldVal,
java.lang.Object newVal,
java.lang.String... filterArgs) |
Executes an ADV event and transmits the old and the new
value to all subscribers.
|
void |
subscribe(java.beans.PropertyChangeListener listener,
ADVEvent event,
java.lang.String... filterArgs) |
Registers a listener for a specific event
|
void |
subscribe(java.beans.PropertyChangeListener listener,
java.util.List<ADVEvent> events,
java.lang.String... filterArgs) |
Registers a listener for multiple events
|
void |
unsubscribe(java.beans.PropertyChangeListener listener,
ADVEvent event,
java.lang.String... filterArgs) |
Removes the listener for a specific event
|
void |
unsubscribe(java.beans.PropertyChangeListener listener,
java.util.List<ADVEvent> events,
java.lang.String... filterArgs) |
Removes the listener for multiple events
|
public void subscribe(java.beans.PropertyChangeListener listener,
ADVEvent event,
java.lang.String... filterArgs)
If filter arguments are provided, they are added to the event handle. This can be handy if you want narrow the context of event. (e.g. only listen for added snapshots in the session with id XY)
listener - listenerevent - ADV event handlefilterArgs - optional filter argumentspublic void subscribe(java.beans.PropertyChangeListener listener,
java.util.List<ADVEvent> events,
java.lang.String... filterArgs)
If filter arguments are provided, they are added to the event handle. This can be handy if you want to narrow the context of an event. (e.g. only listen for added snapshots in the session with id XY)
listener - listenerevents - ADV events handlefilterArgs - optional filter argumentspublic void unsubscribe(java.beans.PropertyChangeListener listener,
ADVEvent event,
java.lang.String... filterArgs)
If filter arguments are provided, they are added to the event handle. This can be handy if you want narrow the context of event. (e.g. only listen for added snapshots in the session with id XY)
listener - listenerevent - ADV event handlefilterArgs - optional filter argumentspublic void unsubscribe(java.beans.PropertyChangeListener listener,
java.util.List<ADVEvent> events,
java.lang.String... filterArgs)
listener - listenerevents - ADV eventsfilterArgs - optional filter argumentspublic void fire(ADVEvent event, java.lang.Object oldVal, java.lang.Object newVal, java.lang.String... filterArgs)
If filter arguments are provided, they are added to the event handle. This can be handy if you want narrow the context of event. (e.g. only listen for added snapshots in the session with id XY)
event - event handleoldVal - value before changenewVal - value after changefilterArgs - optional filter arguments