Package com.oracle.coherence.cdi.events
Class EventObserverSupport.ServiceEventHandler<E extends Event<T>,T extends Enum<T>>
java.lang.Object
com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler<E,T>
com.oracle.coherence.cdi.events.EventObserverSupport.ServiceEventHandler<E,T>
- Type Parameters:
E
- the type ofEvent
this interceptor acceptsT
- the enumeration of event types E supports
- All Implemented Interfaces:
EventDispatcherAwareInterceptor<E>
,EventInterceptor<E>
- Direct Known Subclasses:
EventObserverSupport.TransactionEventHandler
,EventObserverSupport.TransferEventHandler
,EventObserverSupport.UnsolicitedCommitEventHandler
- Enclosing class:
EventObserverSupport
public abstract static class EventObserverSupport.ServiceEventHandler<E extends Event<T>,T extends Enum<T>>
extends EventObserverSupport.EventHandler<E,T>
Abstract base class for all observer-based service interceptors.
-
Field Summary
Fields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServiceEventHandler
(EventObserverSupport.EventObserver<E> observer, Class<T> classType) -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurableCacheFactory
protected boolean
isApplicable
(EventDispatcher dispatcher, String sScopeName) Returntrue
if this interceptor should be registered with a specified dispatcher.Methods inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
addType, eventTypes, getEventScope, getId, getScopeName, introduceEventDispatcher, onEvent, removeScope, shouldFire
-
Field Details
-
m_serviceName
-
-
Constructor Details
-
ServiceEventHandler
-
-
Method Details
-
isApplicable
Description copied from class:EventObserverSupport.EventHandler
Returntrue
if this interceptor should be registered with a specified dispatcher.- Specified by:
isApplicable
in classEventObserverSupport.EventHandler<E extends Event<T>,
T extends Enum<T>> - Parameters:
dispatcher
- a dispatcher to register this interceptor withsScopeName
- a scope name the observer is interested in, ornull
for all scopes- Returns:
true
if this interceptor should be registered with a specified dispatcher;false
otherwise
-
getConfigurableCacheFactory
-