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>
AnEventInterceptorthat 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 intgetActivatedCount()Added for Coherence JCache functional testing.booleanisContainerContext()Added for Coherence JCache functional testing.voidonEvent(LifecycleEvent event)Perform necessary processing of the specifiedEvent.
-
-
-
Method Detail
-
onEvent
public void onEvent(LifecycleEvent event)
Description copied from interface:EventInterceptorPerform necessary processing of the specifiedEvent.- Specified by:
onEventin 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.
-
-