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()
ConstructConfigPropertyResolver
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEnv(String name)
Return the value of the specified environment variable.String
getProperty(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()
ConstructConfigPropertyResolver
instance.This class is loaded by the
ServiceLoader
so must have a default constructor.
-
-
Method Detail
-
getEnv
public String getEnv(String name)
Description copied from interface:EnvironmentVariableResolver
Return the value of the specified environment variable.- Specified by:
getEnv
in 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:SystemPropertyResolver
Return the value of the specified system property.- Specified by:
getProperty
in interfaceSystemPropertyResolver
- Parameters:
name
- the name of the property to return- Returns:
- the value of the specified system property
-
-