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>
An
EventInterceptor
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
-
Method Summary
Modifier and TypeMethodDescriptionint
Added for Coherence JCache functional testing.boolean
Added for Coherence JCache functional testing.void
onEvent
(LifecycleEvent event) Perform necessary processing of the specifiedEvent
.
-
Constructor Details
-
JCacheLifecycleInterceptor
public JCacheLifecycleInterceptor()
-
-
Method Details
-
onEvent
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:
-
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.
-