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 forLifecycleEvent
s.
-
-
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 String
getEventScope(LifecycleEvent event)
Return the scope name of theConfigurableCacheFactory
the specified event was raised from.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, 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.EventHandler
Returntrue
if this interceptor should be registered with a specified dispatcher.- Specified by:
isApplicable
in classEventObserverSupport.EventHandler<LifecycleEvent,LifecycleEvent.Type>
- 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
-
getEventScope
protected String getEventScope(LifecycleEvent event)
Description copied from class:EventObserverSupport.EventHandler
Return the scope name of theConfigurableCacheFactory
the specified event was raised from.- Overrides:
getEventScope
in classEventObserverSupport.EventHandler<LifecycleEvent,LifecycleEvent.Type>
- Parameters:
event
- the event to extract scope name from- Returns:
- the scope name
-
-