Class CoherenceSpringConfiguration

java.lang.Object
com.oracle.coherence.spring.configuration.CoherenceSpringConfiguration

Main configuration class to configure Coherence.
Since:
3.0
Author:
Gunnar Hillert
  • Field Details

    • logger

      protected static final Log logger
    • COHERENCE_BEAN_NAME

      public static final String COHERENCE_BEAN_NAME
      The name of the default Coherence bean.
      See Also:
    • COHERENCE_CONFIGURATION_BEAN_NAME

      public static final String COHERENCE_CONFIGURATION_BEAN_NAME
      The name of the default CoherenceConfiguration bean.
      See Also:
    • COHERENCE_SERVER_BEAN_NAME

      public static final String COHERENCE_SERVER_BEAN_NAME
      The name of the default CoherenceServer bean.
      See Also:
    • COHERENCE_CLUSTER_BEAN_NAME

      public static final String COHERENCE_CLUSTER_BEAN_NAME
      The name of the default Coherence Cluster bean.
      See Also:
    • SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME

      public static final String SPRING_SYSTEM_PROPERTY_RESOLVER_BEAN_NAME
      The name of the default Coherence Cluster bean.
      See Also:
    • COHERENCE_CONFIGURER_BEAN_NAME

      public static final String COHERENCE_CONFIGURER_BEAN_NAME
      The name of the CoherenceConfigurer bean.
      See Also:
  • Constructor Details

  • 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 Coherence Cluster.
      Returns:
      the Coherence Cluster (which may or may not be running)
    • session

      @Bean @Scope("prototype") public com.tangosol.net.Session session(InjectionPoint injectionPoint)
      Create a Session from the qualifiers on the specified injection point. If no Name annotation is provided, then the default session is returned.
      Parameters:
      injectionPoint - the injection point that the Session 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 underlying CoherenceConfigurer, 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 Java Serializer.
      Returns:
      the default Java Serializer
    • pofSerializer

      @Qualifier("pof") @Bean public com.tangosol.io.Serializer pofSerializer()
      A factory method to produce the default Java Serializer.
      Returns:
      the default Java Serializer