Class CoherenceSpringConfiguration
java.lang.Object
com.oracle.coherence.spring.configuration.CoherenceSpringConfiguration
@Configuration
@Import({CoherenceConversionServicePostProcessor.class,NamedCacheConfiguration.class,ExtractorConfiguration.class,FilterConfiguration.class,ExtractorService.class,FilterService.class,MapEventTransformerService.class,MapEventTransformerConfiguration.class,NamedTopicConfiguration.class,CoherenceTopicListenerSubscribers.class})
@PropertySource("classpath:coherence-spring.properties")
public class CoherenceSpringConfiguration
extends Object
Main configuration class to configure Coherence.
- Since:
- 3.0
- Author:
- Gunnar Hillert
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the defaultCoherence
bean.static final String
The name of the default CoherenceCluster
bean.static final String
The name of the defaultCoherenceConfiguration
bean.static final String
The name of theCoherenceConfigurer
bean.static final String
The name of the defaultCoherenceServer
bean.protected static final Log
static final String
The name of the default CoherenceCluster
bean. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.tangosol.io.Serializer
A factory method to produce the default JavaSerializer
.com.tangosol.net.Coherence
com.tangosol.net.Cluster
Return the CoherenceCluster
.com.tangosol.net.CoherenceConfiguration
protected void
Sets up the basic components used by Coherence.com.tangosol.io.Serializer
A factory method to produce the default JavaSerializer
.com.tangosol.net.Session
session
(InjectionPoint injectionPoint) Create aSession
from the qualifiers on the specified injection point.void
setCoherenceEventListenerCandidates
(CoherenceEventListenerCandidates coherenceEventListenerCandidates)
-
Field Details
-
logger
-
COHERENCE_BEAN_NAME
The name of the defaultCoherence
bean.- See Also:
-
COHERENCE_CONFIGURATION_BEAN_NAME
The name of the defaultCoherenceConfiguration
bean.- See Also:
-
COHERENCE_SERVER_BEAN_NAME
The name of the defaultCoherenceServer
bean.- See Also:
-
COHERENCE_CLUSTER_BEAN_NAME
The name of the default CoherenceCluster
bean.- See Also:
-
SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
The name of the default CoherenceCluster
bean.- See Also:
-
COHERENCE_CONFIGURER_BEAN_NAME
The name of theCoherenceConfigurer
bean.- See Also:
-
-
Constructor Details
-
CoherenceSpringConfiguration
-
-
Method Details
-
getCoherence
@Bean("coherence") @DependsOn("springSystemPropertyResolver") public com.tangosol.net.Coherence getCoherence() -
getCoherenceConfiguration
@Bean("coherenceConfiguration") public com.tangosol.net.CoherenceConfiguration getCoherenceConfiguration() -
getCoherenceServer
@Bean("coherenceServer") @DependsOn("springSystemPropertyResolver") public CoherenceServer getCoherenceServer() -
getCoherenceCluster
@Bean("coherenceCluster") @DependsOn("coherenceServer") @Scope("prototype") public com.tangosol.net.Cluster getCoherenceCluster()Return the CoherenceCluster
.- Returns:
- the Coherence
Cluster
(which may or may not be running)
-
session
Create aSession
from the qualifiers on the specified injection point. If noName
annotation is provided, then the default session is returned.- Parameters:
injectionPoint
- the injection point that theSession
will be injected into- Returns:
- a
Session
-
initialize
@PostConstruct protected void initialize()Sets up the basic components used by Coherence. These are extracted from the underlyingCoherenceConfigurer
, defaulting to sensible values. -
coherenceEventListenerMethodProcessor
-
setCoherenceEventListenerCandidates
@Autowired public void setCoherenceEventListenerCandidates(CoherenceEventListenerCandidates coherenceEventListenerCandidates) -
coherenceTopicListenerPostProcessor
-
defaultSerializer
A factory method to produce the default JavaSerializer
.- Returns:
- the default Java
Serializer
-
pofSerializer
A factory method to produce the default JavaSerializer
.- Returns:
- the default Java
Serializer
-