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 Details

    • JCacheLifecycleInterceptor

      public JCacheLifecycleInterceptor()
  • Method Details

    • onEvent

      public void onEvent(LifecycleEvent event)
      Description copied from interface: EventInterceptor
      Perform necessary processing of the specified Event.
      Specified by:
      onEvent in interface EventInterceptor<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.