Package com.oracle.coherence.cdi
Class CoherenceProducer
- java.lang.Object
-
- com.oracle.coherence.cdi.CoherenceProducer
-
- Direct Known Subclasses:
ServerCoherenceProducer
@ApplicationScoped public class CoherenceProducer extends Object
A producer that creates the defaultCoherence
bean.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.12.10
-
-
Constructor Summary
Constructors Constructor Description CoherenceProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coherence
createCoherence(javax.enterprise.inject.spi.BeanManager beanManager)
Create the defaultCoherence
bean.protected CoherenceConfiguration
createConfiguration(javax.enterprise.inject.spi.BeanManager beanManager)
-
-
-
Method Detail
-
createCoherence
@Produces @Singleton @Name("") public Coherence createCoherence(javax.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(javax.enterprise.inject.spi.BeanManager beanManager)
-
-