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
Fields Modifier and Type Field Description protected Stringm_serviceName-
Fields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceEventHandler(EventObserverSupport.EventObserver<E> observer, Class<T> classType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurableCacheFactorygetConfigurableCacheFactory(PartitionedService service)protected 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 Detail
-
m_serviceName
protected final String m_serviceName
-
-
Constructor Detail
-
ServiceEventHandler
protected ServiceEventHandler(EventObserverSupport.EventObserver<E> observer, Class<T> classType)
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(EventDispatcher dispatcher, String sScopeName)
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
protected ConfigurableCacheFactory getConfigurableCacheFactory(PartitionedService service)
-
-