Package com.oracle.coherence.mp.config
Class ConfigPropertyResolver
- java.lang.Object
-
- com.oracle.coherence.mp.config.ConfigPropertyResolver
-
- All Implemented Interfaces:
EnvironmentVariableResolver,SystemPropertyResolver
public class ConfigPropertyResolver extends Object implements SystemPropertyResolver, EnvironmentVariableResolver
An implementation of Coherence property resolvers that reads system properties and environment variables from MP Config.- Since:
- 20.06
- Author:
- Aleks Seovic 2019.10.11
- See Also:
SystemPropertyResolver,EnvironmentVariableResolver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.EnvironmentVariableResolver
EnvironmentVariableResolver.Default
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.SystemPropertyResolver
SystemPropertyResolver.Default
-
-
Constructor Summary
Constructors Constructor Description ConfigPropertyResolver()ConstructConfigPropertyResolverinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEnv(String name)Return the value of the specified environment variable.StringgetProperty(String name)Return the value of the specified system property.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.coherence.config.EnvironmentVariableResolver
getEnv
-
Methods inherited from interface com.tangosol.coherence.config.SystemPropertyResolver
getProperty
-
-
-
-
Constructor Detail
-
ConfigPropertyResolver
public ConfigPropertyResolver()
ConstructConfigPropertyResolverinstance.This class is loaded by the
ServiceLoaderso must have a default constructor.
-
-
Method Detail
-
getEnv
public String getEnv(String name)
Description copied from interface:EnvironmentVariableResolverReturn the value of the specified environment variable.- Specified by:
getEnvin interfaceEnvironmentVariableResolver- Parameters:
name- the name of the environment variable to return- Returns:
- the value of the specified environment variable
-
getProperty
public String getProperty(String name)
Description copied from interface:SystemPropertyResolverReturn the value of the specified system property.- Specified by:
getPropertyin interfaceSystemPropertyResolver- Parameters:
name- the name of the property to return- Returns:
- the value of the specified system property
-
-