public class DefaultEventSinkBroker extends Object implements EventSinkBroker
EventSinkBroker.| Constructor and Description |
|---|
DefaultEventSinkBroker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSink(Class<? extends Event> eventClass,
EventSink sink)
Adds a new event sink associated with the specified event class.
|
EventSink |
get(Class<? extends Event> eventClass)
Get the event sink associated with the given event class.
|
void |
removeSink(Class<? extends Event> eventClass)
Removes a previously added event sink.
|
public void addSink(Class<? extends Event> eventClass, EventSink sink)
EventSinkBrokeraddSink in interface EventSinkBrokereventClass - class of events handled by the sinksink - event sinkpublic void removeSink(Class<? extends Event> eventClass)
EventSinkBrokerremoveSink in interface EventSinkBrokereventClass - class of events handled by the sinkpublic EventSink get(Class<? extends Event> eventClass)
EventSinkBrokerget in interface EventSinkBrokereventClass - class of eventsCopyright © 2014. All Rights Reserved.