Class CoherenceConfigurationClient

java.lang.Object
io.micronaut.coherence.discovery.CoherenceConfigurationClient
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.discovery.config.ConfigurationClient

@Singleton @Requires(beans=CoherenceClientConfiguration.class) public class CoherenceConfigurationClient extends Object implements io.micronaut.discovery.config.ConfigurationClient
A ConfigurationClient that works with Coherence as a config source.
  • Field Summary

    Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient

    CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoherenceConfigurationClient(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, CoherenceClientConfiguration coherenceClientConfiguration, io.micronaut.context.BeanContext beanContext)
    Construct a new CoherenceConfigurationClient.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<Integer,String>
    buildSourceNames(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment)
    Build a map of config source names.
     
    org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>
    getPropertySources(io.micronaut.context.env.Environment environment)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.naming.Described

    getDescription
  • Constructor Details

    • CoherenceConfigurationClient

      public CoherenceConfigurationClient(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, CoherenceClientConfiguration coherenceClientConfiguration, io.micronaut.context.BeanContext beanContext)
      Construct a new CoherenceConfigurationClient.
      Parameters:
      applicationConfiguration - the application configuration
      coherenceClientConfiguration - the client configuration
      beanContext - the bean context
  • Method Details

    • getPropertySources

      public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment)
      Specified by:
      getPropertySources in interface io.micronaut.discovery.config.ConfigurationClient
    • buildSourceNames

      protected Map<Integer,String> buildSourceNames(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment)
      Build a map of config source names.
      Parameters:
      applicationConfiguration - the application configuration
      environment - the current environment
      Returns:
      a map of config source names
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.micronaut.core.naming.Described