|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventDispatcher
An EventDispatcher
is responsible for dispatching EventDispatcher.InterceptorRegistrationEvent
s to EventInterceptor
s for processing.
Nested Class Summary | |
---|---|
static interface |
EventDispatcher.InterceptorRegistrationEvent An InterceptorRegistrationEvent allows EventInterceptor s to observe other EventInterceptors being added or removed from an EventDispatcher instance. |
Method Summary | |
---|---|
void |
addEventInterceptor(EventInterceptor interceptor) Add an EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvent s. |
void |
addEventInterceptor(java.lang.String sIdentifier, EventInterceptor interceptor) Add a uniquely identified EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvent s. |
void |
addEventInterceptor(java.lang.String sIdentifier, EventInterceptor interceptor, java.util.Set setTypes, boolean fFirst) Add a uniquely identified EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvent s. |
java.util.Set |
getSupportedTypes() Return the set of EventDispatcher.InterceptorRegistrationEvent types this EventDispatcher supports. |
void |
removeEventInterceptor(EventInterceptor interceptor) Remove an EventInterceptor from this dispatcher. |
void |
removeEventInterceptor(java.lang.String sIdentifier) Remove an EventInterceptor from this dispatcher. |
Method Detail |
---|
void addEventInterceptor(EventInterceptor interceptor)
EventInterceptor
to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvent
s. 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.interceptor
- the EventInterceptor to addvoid addEventInterceptor(java.lang.String sIdentifier, EventInterceptor interceptor)
EventInterceptor
to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvent
s. The EventInterceptor will be analyzed to determine applicability to this dispatcher.sIdentifier
- the unique name of the EventInterceptor
to addinterceptor
- the EventInterceptor
to addvoid addEventInterceptor(java.lang.String sIdentifier, EventInterceptor interceptor, java.util.Set setTypes, boolean fFirst)
EventInterceptor
to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvent
s.sIdentifier
- the unique name of the EventInterceptor
to addinterceptor
- the EventInterceptor
to addsetTypes
- the EventDispatcher.InterceptorRegistrationEvent
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 chainvoid removeEventInterceptor(EventInterceptor interceptor)
EventInterceptor
from this dispatcher.interceptor
- the EventInterceptor to be removed from the dispatcher based on identity referencevoid removeEventInterceptor(java.lang.String sIdentifier)
EventInterceptor
from this dispatcher.sIdentifier
- the unique name identifying the EventInterceptor to removejava.util.Set getSupportedTypes()
EventDispatcher.InterceptorRegistrationEvent
types this EventDispatcher
supports.
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |