Class 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 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
      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)  
      • 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 Detail

      • MicronautSystemPropertyResolver

        public MicronautSystemPropertyResolver()
        This constructor is required so that Coherence can discover and instantiate this class using the Java ServiceLoader.
    • Method Detail

      • getProperty

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

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