public interface EventSinkRegistry
Modifier and Type | Method and Description |
---|---|
<E extends Event> |
addSink(Class<E> eventClass,
EventSink<E> sink)
Adds the specified sink for the given event class.
|
<E extends Event> |
getSink(Class<E> eventClass)
Returns the event sink associated with the specified event class.
|
Set<Class<? extends Event>> |
getSinks()
Returns the set of all event classes for which sinks are presently
registered.
|
<E extends Event> |
removeSink(Class<E> eventClass)
Removes the sink associated with the given event class.
|
<E extends Event> void addSink(Class<E> eventClass, EventSink<E> sink)
E
- type of eventeventClass
- event classsink
- event sink<E extends Event> void removeSink(Class<E> eventClass)
E
- type of eventeventClass
- event class<E extends Event> EventSink<E> getSink(Class<E> eventClass)
E
- type of eventeventClass
- event class