Class ConsulConfigurationClient

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

@Singleton @RequiresConsul @Requires(beans=ConsulClient.class) @Requires(property="micronaut.config-client.enabled",value="true",defaultValue="false") public class ConsulConfigurationClient extends Object implements io.micronaut.discovery.config.ConfigurationClient
A ConfigurationClient for Consul.
  • Constructor Details

    • ConsulConfigurationClient

      public ConsulConfigurationClient(ConsulClient consulClient, ConsulConfiguration consulConfiguration, io.micronaut.context.env.Environment environment)
      Parameters:
      consulClient - The consul client
      consulConfiguration - The consul configuration
      environment - The environment
  • Method Details

    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.micronaut.core.naming.Described
    • 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