Class CoherenceExtension

  • All Implemented Interfaces:
    javax.enterprise.inject.spi.Extension

    public class CoherenceExtension
    extends Object
    implements javax.enterprise.inject.spi.Extension
    A Coherence CDI Extension that is used on both cluster members and the clients.
    Since:
    20.06
    Author:
    Jonathan Knight 2019.10.24, Aleks Seovic 2020.03.25
    • Constructor Detail

      • CoherenceExtension

        public CoherenceExtension()
    • Method Detail

      • getMapListeners

        public List<AnnotatedMapListener<?,​?>> getMapListeners()
        Returns the discovered map listeners.
        Returns:
        the discovered map listeners
      • ensureCoherence

        public static Coherence ensureCoherence​(javax.enterprise.inject.spi.BeanManager beanManager)
        Ensure that a Coherence bean is resolvable and started.
        Parameters:
        beanManager - the bean manager to use to resolve the Coherence bean
        Returns:
        the Coherence bean
        Throws:
        IllegalStateException - if no Coherence bean is resolvable
      • getCoherence

        public Coherence getCoherence()
        Returns the Coherence instance started by the extension.
        Returns:
        the Coherence instance started by the extension