Class CoherenceHibernateSystemPropertyResolver

  • All Implemented Interfaces:
    com.tangosol.coherence.config.EnvironmentVariableResolver, com.tangosol.coherence.config.SystemPropertyResolver

    public class CoherenceHibernateSystemPropertyResolver
    extends Object
    implements com.tangosol.coherence.config.EnvironmentVariableResolver, com.tangosol.coherence.config.SystemPropertyResolver
    A Coherence SystemPropertyResolver and EnvironmentVariableResolver that uses a configurable Map to return Coherence configuration properties.

    This class needs to be eagerly instantiated by Coherence Hibernate before any Coherence class that might need properties.

    Since:
    2.1
    Author:
    Gunnar Hillert
    • Constructor Detail

      • CoherenceHibernateSystemPropertyResolver

        public CoherenceHibernateSystemPropertyResolver()
        This constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader.
      • CoherenceHibernateSystemPropertyResolver

        public CoherenceHibernateSystemPropertyResolver​(Map<String,​Object> coherenceProperties)
        This constructor will be called by Coherence Hibernate to instantiate the singleton bean and set the coherenceProperties.
        Parameters:
        coherenceProperties - the Coherence properties. Must not be null.
    • Method Detail

      • getProperty

        public String getProperty​(String coherenceProperty)
        Specified by:
        getProperty in interface com.tangosol.coherence.config.SystemPropertyResolver
      • getEnv

        public String getEnv​(String coherenceProperty)
        Specified by:
        getEnv in interface com.tangosol.coherence.config.EnvironmentVariableResolver
      • addCoherenceProperty

        public void addCoherenceProperty​(String key,
                                         String value)