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

    Constructors
    Constructor
    Description
    This constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    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

      public String getProperty(String s)
      Specified by:
      getProperty in interface com.tangosol.coherence.config.SystemPropertyResolver
    • getEnv

      public String getEnv(String s)
      Specified by:
      getEnv in interface com.tangosol.coherence.config.EnvironmentVariableResolver