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 CoherenceSystemPropertyResolverandEnvironmentVariableResolverthat uses a configurableMapto 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 voidaddCoherenceProperty(String key, String value)StringgetEnv(String coherenceProperty)StringgetProperty(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:
getPropertyin interfacecom.tangosol.coherence.config.SystemPropertyResolver
-
getEnv
public String getEnv(String coherenceProperty)
- Specified by:
getEnvin interfacecom.tangosol.coherence.config.EnvironmentVariableResolver
-
-