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 ofEventthis 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
FieldsFields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServiceEventHandler(EventObserverSupport.EventObserver<E> observer, Class<T> classType) -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurableCacheFactoryprotected booleanisApplicable(EventDispatcher dispatcher, String sScopeName) Returntrueif 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.EventHandlerReturntrueif this interceptor should be registered with a specified dispatcher.- Specified by:
isApplicablein 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, ornullfor all scopes- Returns:
trueif this interceptor should be registered with a specified dispatcher;falseotherwise
-
getConfigurableCacheFactory
-