Class DefaultCoherenceConfigurer
- java.lang.Object
-
- com.oracle.coherence.spring.configuration.DefaultCoherenceConfigurer
-
- All Implemented Interfaces:
CoherenceConfigurer
@Configuration public class DefaultCoherenceConfigurer extends Object implements CoherenceConfigurer
Default implementation of theCoherenceConfigurerinterface.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
-
Constructor Summary
Constructors Constructor Description DefaultCoherenceConfigurer(ConfigurableApplicationContext context, CoherenceEventListenerCandidates coherenceEventListenerCandidates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.tangosol.net.CoherencecreateCoherence()protected com.tangosol.net.CoherenceConfigurationcreateCoherenceConfiguration()Create theCoherenceConfiguration.protected CoherenceServercreateCoherenceServer()com.tangosol.net.CoherencegetCoherence()Responsible for returning theCoherenceinstance.com.tangosol.net.CoherenceConfigurationgetCoherenceConfiguration()Responsible for creating theCoherenceConfigurationfor theCoherenceServer.CoherenceServergetCoherenceServer()Returns theCoherenceServerinstance.voidinitialize()
-
-
-
Constructor Detail
-
DefaultCoherenceConfigurer
public DefaultCoherenceConfigurer(ConfigurableApplicationContext context, CoherenceEventListenerCandidates coherenceEventListenerCandidates)
-
-
Method Detail
-
getCoherence
public com.tangosol.net.Coherence getCoherence()
Description copied from interface:CoherenceConfigurerResponsible for returning theCoherenceinstance.- Specified by:
getCoherencein interfaceCoherenceConfigurer- Returns:
- the Coherence instance
-
getCoherenceServer
public CoherenceServer getCoherenceServer()
Description copied from interface:CoherenceConfigurerReturns theCoherenceServerinstance. Use theCoherenceServerto start and stop theCoherenceinstance.- Specified by:
getCoherenceServerin interfaceCoherenceConfigurer- Returns:
- the Coherence Server
-
getCoherenceConfiguration
public com.tangosol.net.CoherenceConfiguration getCoherenceConfiguration()
Description copied from interface:CoherenceConfigurerResponsible for creating theCoherenceConfigurationfor theCoherenceServer.- Specified by:
getCoherenceConfigurationin interfaceCoherenceConfigurer- Returns:
- the configuration for a Coherence instance
-
initialize
@PostConstruct public void initialize()
-
createCoherenceConfiguration
protected com.tangosol.net.CoherenceConfiguration createCoherenceConfiguration()
Create theCoherenceConfiguration.- Returns:
- the Configuration for a Coherence instance.
-
createCoherence
protected com.tangosol.net.Coherence createCoherence()
-
createCoherenceServer
protected CoherenceServer createCoherenceServer()
-
-