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 for
LifecycleEvent
s.-
Field Summary
Fields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
LifecycleEventHandler
-
-
Method Details
-
isApplicable
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
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
-