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.DefaultNested classes/interfaces inherited from interface com.tangosol.coherence.config.SystemPropertyResolver
com.tangosol.coherence.config.SystemPropertyResolver.Default -
Constructor Summary
ConstructorsConstructorDescriptionThis 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, waitMethods inherited from interface com.tangosol.coherence.config.EnvironmentVariableResolver
getEnvMethods 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:
getPropertyin interfacecom.tangosol.coherence.config.SystemPropertyResolver
-
getEnv
- Specified by:
getEnvin interfacecom.tangosol.coherence.config.EnvironmentVariableResolver
-