Class CoherenceHibernateSystemPropertyResolver
- java.lang.Object
-
- com.oracle.coherence.hibernate.cache.v53.configuration.support.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 CoherenceSystemPropertyResolver
andEnvironmentVariableResolver
that uses a configurableMap
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 Summary
Constructors Constructor Description CoherenceHibernateSystemPropertyResolver()
This constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader.CoherenceHibernateSystemPropertyResolver(Map<String,Object> coherenceProperties)
This constructor will be called by Coherence Hibernate to instantiate the singleton bean and set thecoherenceProperties
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCoherenceProperty(String key, String value)
String
getEnv(String coherenceProperty)
String
getProperty(String coherenceProperty)
-
-
-
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 thecoherenceProperties
.- Parameters:
coherenceProperties
- the Coherence properties. Must not be null.
-
-
Method Detail
-
getProperty
public String getProperty(String coherenceProperty)
- Specified by:
getProperty
in interfacecom.tangosol.coherence.config.SystemPropertyResolver
-
getEnv
public String getEnv(String coherenceProperty)
- Specified by:
getEnv
in interfacecom.tangosol.coherence.config.EnvironmentVariableResolver
-
-