Class ContainerHelper


  • public class ContainerHelper
    extends Object
    Helpers for supporting Coherence JCache in Container Environment.

    After ContainerAdapter has initialized Coherence, the Lifecycle event ACTIVATED will trigger activation of Coherence JCache artifacts within a container context.

    Provides support for configuring Coherence JCache from a GAR.

    Since:
    Coherence 12.2.1
    Author:
    jf 2014.07.28
    • Constructor Detail

      • ContainerHelper

        public ContainerHelper()
    • Method Detail

      • isContainerContext

        public static boolean isContainerContext​(ExtensibleConfigurableCacheFactory eccf)
        Return true if running in a container environment.
        Parameters:
        eccf - use resource registry from this eccf context to determine if running in a container or not.
        Returns:
        true iff running in a container environment.
      • isWLSContainer

        public static boolean isWLSContainer()
        Deprecated.
        Container specific solution to identify if running in container. No longer used but keep around just in case needed in future.
        Returns:
        true iff running in a WLS Container context.