public interface IEventBus extends INotificationListener
| Modifier and Type | Method and Description |
|---|---|
void |
register(INotificationSupport ns)
Any object wanting to propagate its own notifications via the
IEventBus can simply register himself. |
void |
subscribe(EventSourcePredicate predicate,
EventType type,
INotificationListener listener)
Indicate that listener should be informed whenever a notification of
EventType type isissued by a source accepted by predicate. |
void |
unregister(INotificationSupport ns)
Stop forwarding events from ns to the
IEventBus. |
handleEventvoid register(INotificationSupport ns)
IEventBus can simply register himself. Every notification issued
by ns will be forwarded to the IEventBus.ns - void subscribe(EventSourcePredicate predicate, EventType type, INotificationListener listener)
EventType type isissued by a source accepted by predicate.predicate - type - listener - void unregister(INotificationSupport ns)
IEventBus.ns - Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.