Package io.micronaut.coherence.config
Class MicronautSystemPropertyResolver
- java.lang.Object
-
- io.micronaut.coherence.config.MicronautSystemPropertyResolver
-
- All Implemented Interfaces:
com.tangosol.coherence.config.EnvironmentVariableResolver
,com.tangosol.coherence.config.SystemPropertyResolver
@Singleton @Context public class MicronautSystemPropertyResolver extends java.lang.Object implements com.tangosol.coherence.config.SystemPropertyResolver, com.tangosol.coherence.config.EnvironmentVariableResolver
A CoherenceSystemPropertyResolver
andEnvironmentVariableResolver
that uses the MicronautEnvironment
to obtain values.This class is annotated as a singleton bean with the
Context
annotation so that its lifecycle is bound to the Micronaut context to ensure it is eagerly instantiated before any Coherence class that might need properties.- Since:
- 1.0
- Author:
- Jonathan Knight
-
-
Constructor Summary
Constructors Constructor Description MicronautSystemPropertyResolver()
This constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEnv(java.lang.String s)
java.lang.String
getProperty(java.lang.String s)
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String s)
- Specified by:
getProperty
in interfacecom.tangosol.coherence.config.SystemPropertyResolver
-
getEnv
public java.lang.String getEnv(java.lang.String s)
- Specified by:
getEnv
in interfacecom.tangosol.coherence.config.EnvironmentVariableResolver
-
-