Package com.oracle.coherence.cdi
Class CoherenceExtension
java.lang.Object
com.oracle.coherence.cdi.CoherenceExtension
- All Implemented Interfaces:
jakarta.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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoherenceensureCoherence(jakarta.enterprise.inject.spi.BeanManager beanManager) Ensure that aCoherencebean is resolvable and started.Returns theCoherenceinstance started by the extension.List<AnnotatedMapListener<?, ?>> Returns the discovered map listeners.
-
Constructor Details
-
CoherenceExtension
public CoherenceExtension()
-
-
Method Details
-
getMapListeners
Returns the discovered map listeners.- Returns:
- the discovered map listeners
-
ensureCoherence
Ensure that aCoherencebean is resolvable and started.- Parameters:
beanManager- the bean manager to use to resolve theCoherencebean- Returns:
- the
Coherencebean - Throws:
IllegalStateException- if noCoherencebean is resolvable
-
getCoherence
Returns theCoherenceinstance started by the extension.- Returns:
- the
Coherenceinstance started by the extension
-