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 java.lang.Object
Main configuration class to configure Coherence.- Since:
 - 3.0
 - Author:
 - Gunnar Hillert
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOHERENCE_BEAN_NAMEThe name of the defaultCoherencebean.static java.lang.StringCOHERENCE_CLUSTER_BEAN_NAMEThe name of the default CoherenceClusterbean.static java.lang.StringCOHERENCE_CONFIGURATION_BEAN_NAMEThe name of the defaultCoherenceConfigurationbean.static java.lang.StringCOHERENCE_CONFIGURER_BEAN_NAMEThe name of theCoherenceConfigurerbean.static java.lang.StringCOHERENCE_SERVER_BEAN_NAMEThe name of the defaultCoherenceServerbean.protected static Logloggerstatic java.lang.StringSPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAMEThe name of the default CoherenceClusterbean. 
- 
Constructor Summary
Constructors Constructor Description CoherenceSpringConfiguration(ConfigurableApplicationContext context) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoherenceEventListenerMethodProcessorcoherenceEventListenerMethodProcessor()static CoherenceTopicListenerPostProcessorcoherenceTopicListenerPostProcessor()com.tangosol.io.SerializerdefaultSerializer()A factory method to produce the default JavaSerializer.com.tangosol.net.CoherencegetCoherence()com.tangosol.net.ClustergetCoherenceCluster()Return the CoherenceCluster.com.tangosol.net.CoherenceConfigurationgetCoherenceConfiguration()CoherenceServergetCoherenceServer()protected voidinitialize()Sets up the basic components used by Coherence.com.tangosol.io.SerializerpofSerializer()A factory method to produce the default JavaSerializer.com.tangosol.net.Sessionsession(InjectionPoint injectionPoint)Create aSessionfrom the qualifiers on the specified injection point.voidsetCoherenceEventListenerCandidates(CoherenceEventListenerCandidates coherenceEventListenerCandidates) 
 - 
 
- 
- 
Field Detail
- 
logger
protected static final Log logger
 
- 
COHERENCE_BEAN_NAME
public static final java.lang.String COHERENCE_BEAN_NAME
The name of the defaultCoherencebean.- See Also:
 - Constant Field Values
 
 
- 
COHERENCE_CONFIGURATION_BEAN_NAME
public static final java.lang.String COHERENCE_CONFIGURATION_BEAN_NAME
The name of the defaultCoherenceConfigurationbean.- See Also:
 - Constant Field Values
 
 
- 
COHERENCE_SERVER_BEAN_NAME
public static final java.lang.String COHERENCE_SERVER_BEAN_NAME
The name of the defaultCoherenceServerbean.- See Also:
 - Constant Field Values
 
 
- 
COHERENCE_CLUSTER_BEAN_NAME
public static final java.lang.String COHERENCE_CLUSTER_BEAN_NAME
The name of the default CoherenceClusterbean.- See Also:
 - Constant Field Values
 
 
- 
SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
public static final java.lang.String SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
The name of the default CoherenceClusterbean.- See Also:
 - Constant Field Values
 
 
- 
COHERENCE_CONFIGURER_BEAN_NAME
public static final java.lang.String COHERENCE_CONFIGURER_BEAN_NAME
The name of theCoherenceConfigurerbean.- 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 aSessionfrom the qualifiers on the specified injection point. If noNameannotation is provided, then the default session is returned.- Parameters:
 injectionPoint- the injection point that theSessionwill 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()
 
- 
defaultSerializer
@Qualifier("java") @Bean public com.tangosol.io.Serializer defaultSerializer()
A factory method to produce the default JavaSerializer.- Returns:
 - the default Java 
Serializer 
 
- 
pofSerializer
@Qualifier("pof") @Bean public com.tangosol.io.Serializer pofSerializer()
A factory method to produce the default JavaSerializer.- Returns:
 - the default Java 
Serializer 
 
 - 
 
 -