public interface EventService
Fabric3EventListeners subscribe with this service to receive notification of various runtime events.| Modifier and Type | Method and Description |
|---|---|
void |
publish(Fabric3Event event)
Publishes a runtime event.
|
<T extends Fabric3Event> |
subscribe(java.lang.Class<T> type,
Fabric3EventListener<T> listener)
Subscribe the listener to receive notification when events of the specified type are published.
|
<T extends Fabric3Event> |
unsubscribe(java.lang.Class<T> type,
Fabric3EventListener<T> listener)
Unsubscribe the listener from receiving notifications when events of the specified type are published.
|
void publish(Fabric3Event event)
event - the event<T extends Fabric3Event> void subscribe(java.lang.Class<T> type, Fabric3EventListener<T> listener)
type - the event type to receive notifications forlistener - the listener to subscribe<T extends Fabric3Event> void unsubscribe(java.lang.Class<T> type, Fabric3EventListener<T> listener)
type - the event type to unsubscribe fromlistener - the listener to unsubscribe