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-side
Coherence
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoherence
(jakarta.enterprise.inject.spi.BeanManager beanManager) Create the defaultCoherence
bean.Methods inherited from class com.oracle.coherence.cdi.CoherenceProducer
createConfiguration
-
Constructor Details
-
ServerCoherenceProducer
public ServerCoherenceProducer()
-
-
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.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
-