Package com.oracle.coherence.cdi.server
Class ServerCoherenceProducer
- java.lang.Object
-
- com.oracle.coherence.cdi.CoherenceProducer
-
- com.oracle.coherence.cdi.server.ServerCoherenceProducer
-
@ApplicationScoped @Alternative @Priority(1) public class ServerCoherenceProducer extends CoherenceProducer
A CDI server-sideCoherence
bean producer.This bean is a higher priority alternative to the
CoherenceProducer
bean in the CDI common module.- Since:
- 20.12
- Author:
- Jonathan Knight 2020.12.15
-
-
Constructor Summary
Constructors Constructor Description ServerCoherenceProducer()
-
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.-
Methods inherited from class com.oracle.coherence.cdi.CoherenceProducer
createConfiguration
-
-
-
-
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.ClusterMember
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.- Overrides:
createCoherence
in classCoherenceProducer
- Parameters:
beanManager
- the CDI bean manager- Returns:
- the default
Coherence
bean
-
-