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,SerializerConfiguration.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
Fields Modifier and Type Field Description static String
COHERENCE_BEAN_NAME
The name of the defaultCoherence
bean.static String
COHERENCE_CLUSTER_BEAN_NAME
The name of the default CoherenceCluster
bean.static String
COHERENCE_CONFIGURATION_BEAN_NAME
The name of the defaultCoherenceConfiguration
bean.static String
COHERENCE_CONFIGURER_BEAN_NAME
The name of theCoherenceConfigurer
bean.static String
COHERENCE_SERVER_BEAN_NAME
The name of the defaultCoherenceServer
bean.protected static Log
logger
static String
SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
The name of the default CoherenceCluster
bean.
-
Constructor Summary
Constructors Constructor Description CoherenceSpringConfiguration(ConfigurableApplicationContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoherenceEventListenerMethodProcessor
coherenceEventListenerMethodProcessor()
static CoherenceTopicListenerPostProcessor
coherenceTopicListenerPostProcessor()
com.tangosol.net.Coherence
getCoherence()
com.tangosol.net.Cluster
getCoherenceCluster()
Return the CoherenceCluster
.com.tangosol.net.CoherenceConfiguration
getCoherenceConfiguration()
CoherenceServer
getCoherenceServer()
protected void
initialize()
Sets up the basic components used by Coherence.com.tangosol.net.Session
session(InjectionPoint injectionPoint)
Create aSession
from the qualifiers on the specified injection point.void
setCoherenceEventListenerCandidates(CoherenceEventListenerCandidates coherenceEventListenerCandidates)
-
-
-
Field Detail
-
logger
protected static final Log logger
-
COHERENCE_BEAN_NAME
public static final String COHERENCE_BEAN_NAME
The name of the defaultCoherence
bean.- See Also:
- Constant Field Values
-
COHERENCE_CONFIGURATION_BEAN_NAME
public static final String COHERENCE_CONFIGURATION_BEAN_NAME
The name of the defaultCoherenceConfiguration
bean.- See Also:
- Constant Field Values
-
COHERENCE_SERVER_BEAN_NAME
public static final String COHERENCE_SERVER_BEAN_NAME
The name of the defaultCoherenceServer
bean.- See Also:
- Constant Field Values
-
COHERENCE_CLUSTER_BEAN_NAME
public static final String COHERENCE_CLUSTER_BEAN_NAME
The name of the default CoherenceCluster
bean.- See Also:
- Constant Field Values
-
SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
public static final String SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
The name of the default CoherenceCluster
bean.- See Also:
- Constant Field Values
-
COHERENCE_CONFIGURER_BEAN_NAME
public static final String COHERENCE_CONFIGURER_BEAN_NAME
The name of theCoherenceConfigurer
bean.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoherenceSpringConfiguration
public CoherenceSpringConfiguration(ConfigurableApplicationContext context)
-
-
Method Detail
-
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
@Bean @Scope("prototype") public com.tangosol.net.Session session(InjectionPoint injectionPoint)
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
@Bean public static CoherenceEventListenerMethodProcessor coherenceEventListenerMethodProcessor()
-
setCoherenceEventListenerCandidates
@Autowired public void setCoherenceEventListenerCandidates(CoherenceEventListenerCandidates coherenceEventListenerCandidates)
-
coherenceTopicListenerPostProcessor
@Bean public static CoherenceTopicListenerPostProcessor coherenceTopicListenerPostProcessor()
-
-