Class ContainerHelper.JCacheLifecycleInterceptor
- java.lang.Object
-
- com.tangosol.coherence.jcache.common.ContainerHelper.JCacheLifecycleInterceptor
-
- All Implemented Interfaces:
EventInterceptor<LifecycleEvent>
- Enclosing class:
- ContainerHelper
public static class ContainerHelper.JCacheLifecycleInterceptor extends Object implements EventInterceptor<LifecycleEvent>
AnEventInterceptor
that initializes JCache for running within a container.A Container-aware CoherenceBasedCachingProvider and CacheManager are created when ECCF LifeCycle Event ACTIVATED occurs in a container context.
-
-
Constructor Summary
Constructors Constructor Description JCacheLifecycleInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActivatedCount()
Added for Coherence JCache functional testing.boolean
isContainerContext()
Added for Coherence JCache functional testing.void
onEvent(LifecycleEvent event)
Perform necessary processing of the specifiedEvent
.
-
-
-
Method Detail
-
onEvent
public void onEvent(LifecycleEvent event)
Description copied from interface:EventInterceptor
Perform necessary processing of the specifiedEvent
.- Specified by:
onEvent
in interfaceEventInterceptor<LifecycleEvent>
- Parameters:
event
- the Event to be processed- See Also:
Event.nextInterceptor()
-
getActivatedCount
public int getActivatedCount()
Added for Coherence JCache functional testing.- Returns:
- how many times Activated event occurred.
-
isContainerContext
public boolean isContainerContext()
Added for Coherence JCache functional testing.- Returns:
- true iff activated handler detected container context and activated JCache container context.
-
-