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 Object
implements com.tangosol.coherence.config.SystemPropertyResolver, com.tangosol.coherence.config.EnvironmentVariableResolver
A Coherence
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.
- Since:
- 1.0
- Author:
- Jonathan Knight
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.EnvironmentVariableResolver
com.tangosol.coherence.config.EnvironmentVariableResolver.Default
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.SystemPropertyResolver
com.tangosol.coherence.config.SystemPropertyResolver.Default
-
Constructor Summary
ConstructorDescriptionThis constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader. -
Method Summary
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 Details
-
MicronautSystemPropertyResolver
public MicronautSystemPropertyResolver()This constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader.
-
-
Method Details
-
getProperty
- Specified by:
getProperty
in interfacecom.tangosol.coherence.config.SystemPropertyResolver
-
getEnv
- Specified by:
getEnv
in interfacecom.tangosol.coherence.config.EnvironmentVariableResolver
-