Package com.oracle.coherence.cdi
Class CoherenceExtension
- java.lang.Object
-
- com.oracle.coherence.cdi.CoherenceExtension
-
- All Implemented Interfaces:
javax.enterprise.inject.spi.Extension
public class CoherenceExtension extends Object implements javax.enterprise.inject.spi.Extension
A Coherence CDIExtension
that is used on both cluster members and the clients.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.10.24, Aleks Seovic 2020.03.25
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CoherenceExtension.InterceptorProvider
A provider ofNamedEventInterceptor
instances.
-
Constructor Summary
Constructors Constructor Description CoherenceExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Coherence
ensureCoherence(javax.enterprise.inject.spi.BeanManager beanManager)
Ensure that aCoherence
bean is resolvable and started.Coherence
getCoherence()
Returns theCoherence
instance started by the extension.List<AnnotatedMapListener<?,?>>
getMapListeners()
Returns the discovered map listeners.
-
-
-
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 aCoherence
bean is resolvable and started.- Parameters:
beanManager
- the bean manager to use to resolve theCoherence
bean- Returns:
- the
Coherence
bean - Throws:
IllegalStateException
- if noCoherence
bean is resolvable
-
-