public interface EventDispatcher
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EventDispatcher.InterceptorRegistrationEvent<E extends Event<? extends Enum>>
An InterceptorRegistrationEvent allows
EventInterceptors to observe other EventInterceptors being added or removed from an EventDispatcher instance. |
| Modifier and Type | Method and Description |
|---|---|
<E extends Event<? extends Enum>> |
addEventInterceptor(EventInterceptor<E> interceptor)
Add an
EventInterceptor to this dispatcher to be used to process Events. |
<E extends Event<? extends Enum>> |
addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor)
Add a uniquely identified
EventInterceptor to this dispatcher to be used to process Events. |
<T extends Enum<T>,E extends Event<T>> |
addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor, Set<T> setTypes, boolean fFirst)
Add a uniquely identified
EventInterceptor to this dispatcher to be used to process Events. |
Set<Enum> |
getSupportedTypes()
Return the set of
Event types this EventDispatcher supports. |
<E extends Event<? extends Enum>> |
removeEventInterceptor(EventInterceptor<E> interceptor)
Remove an
EventInterceptor from this dispatcher. |
void |
removeEventInterceptor(String sIdentifier)
Remove an
EventInterceptor from this dispatcher. |
<E extends Event<? extends Enum>> void addEventInterceptor(EventInterceptor<E> interceptor)
EventInterceptor to this dispatcher to be used to process Events. The EventInterceptor will be analyzed to determine applicability to this dispatcher and an identifier will be generated if not specified via an annotation. The generated identifier is the fully qualified class name.E - the Event the interceptor acceptsinterceptor - the EventInterceptor to add<E extends Event<? extends Enum>> void addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor)
EventInterceptor to this dispatcher to be used to process Events. The EventInterceptor will be analyzed to determine applicability to this dispatcher.E - the Event the interceptor acceptssIdentifier - the unique name of the EventInterceptor to addinterceptor - the EventInterceptor to add<T extends Enum<T>,E extends Event<T>> void addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor, Set<T> setTypes, boolean fFirst)
EventInterceptor to this dispatcher to be used to process Events.E - the Event the interceptor acceptsT - the type of events dispatched by Event EsIdentifier - the unique name of the EventInterceptor to addinterceptor - the EventInterceptor to addsetTypes - the Event types the specified interceptor is subscribing to, or null to subscribe to all eventsfFirst - true iff the EventInterceptor should be added to the head of this dispatcher's interceptor chain<E extends Event<? extends Enum>> void removeEventInterceptor(EventInterceptor<E> interceptor)
EventInterceptor from this dispatcher.E - the Event the interceptor acceptsinterceptor - the EventInterceptor to be removed from the dispatcher based on identity referencevoid removeEventInterceptor(String sIdentifier)
EventInterceptor from this dispatcher.sIdentifier - the unique name identifying the EventInterceptor to removeSet<Enum> getSupportedTypes()
Event types this EventDispatcher supports.