@Singleton
@Context
public class MicronautSystemPropertyResolver
extends java.lang.Object
implements com.tangosol.coherence.config.SystemPropertyResolver, com.tangosol.coherence.config.EnvironmentVariableResolver
SystemPropertyResolver
and
EnvironmentVariableResolver
that uses
the Micronaut Environment
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.
Constructor and Description |
---|
MicronautSystemPropertyResolver()
This constructor is required so that Coherence can discover
and instantiate this class using the Java ServiceLoader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEnv(java.lang.String s) |
java.lang.String |
getProperty(java.lang.String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MicronautSystemPropertyResolver()
public java.lang.String getProperty(java.lang.String s)
getProperty
in interface com.tangosol.coherence.config.SystemPropertyResolver
public java.lang.String getEnv(java.lang.String s)
getEnv
in interface com.tangosol.coherence.config.EnvironmentVariableResolver