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