Package com.oracle.coherence.cdi
Class CoherenceProducer
java.lang.Object
com.oracle.coherence.cdi.CoherenceProducer
- Direct Known Subclasses:
ServerCoherenceProducer
A producer that creates the default
Coherence
bean.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.12.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoherence
(jakarta.enterprise.inject.spi.BeanManager beanManager) Create the defaultCoherence
bean.protected CoherenceConfiguration
createConfiguration
(jakarta.enterprise.inject.spi.BeanManager beanManager)
-
Constructor Details
-
CoherenceProducer
public CoherenceProducer()
-
-
Method Details
-
createCoherence
@Produces @Singleton @Name("") public Coherence createCoherence(jakarta.enterprise.inject.spi.BeanManager beanManager) Create the defaultCoherence
bean.By default the
Coherence
bean will be run inCoherence.Mode.Client
mode.The configuration can be changed by supplying a
CoherenceConfiguration.Builder
bean annotated with @Named
with a nameCoherence.DEFAULT_NAME
. This configuration bean will then be used to provide the configuration for theCoherence
bean.- Parameters:
beanManager
- the CDI bean manager- Returns:
- the default
Coherence
bean
-
createConfiguration
protected CoherenceConfiguration createConfiguration(jakarta.enterprise.inject.spi.BeanManager beanManager)
-