Package com.oracle.coherence.cdi.events
Class EventObserverSupport.LifecycleEventHandler
- java.lang.Object
-
- com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler<LifecycleEvent,LifecycleEvent.Type>
-
- com.oracle.coherence.cdi.events.EventObserverSupport.LifecycleEventHandler
-
- All Implemented Interfaces:
EventDispatcherAwareInterceptor<LifecycleEvent>,EventInterceptor<LifecycleEvent>
- Enclosing class:
- EventObserverSupport
public static class EventObserverSupport.LifecycleEventHandler extends EventObserverSupport.EventHandler<LifecycleEvent,LifecycleEvent.Type>
Handler forLifecycleEvents.
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes
-
-
Constructor Summary
Constructors Constructor Description LifecycleEventHandler(EventObserverSupport.EventObserver<LifecycleEvent> observer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetEventScope(LifecycleEvent event)Return the scope name of theConfigurableCacheFactorythe specified event was raised from.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, getId, getScopeName, introduceEventDispatcher, onEvent, removeScope, shouldFire
-
-
-
-
Constructor Detail
-
LifecycleEventHandler
public LifecycleEventHandler(EventObserverSupport.EventObserver<LifecycleEvent> observer)
-
-
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<LifecycleEvent,LifecycleEvent.Type>- 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
-
getEventScope
protected String getEventScope(LifecycleEvent event)
Description copied from class:EventObserverSupport.EventHandlerReturn the scope name of theConfigurableCacheFactorythe specified event was raised from.- Overrides:
getEventScopein classEventObserverSupport.EventHandler<LifecycleEvent,LifecycleEvent.Type>- Parameters:
event- the event to extract scope name from- Returns:
- the scope name
-
-