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.-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionConsulConfigurationClient
(ConsulClient consulClient, ConsulConfiguration consulConfiguration, io.micronaut.context.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
ConsulConfigurationClient
public ConsulConfigurationClient(ConsulClient consulClient, ConsulConfiguration consulConfiguration, io.micronaut.context.env.Environment environment) - Parameters:
consulClient
- The consul clientconsulConfiguration
- The consul configurationenvironment
- The environment
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in interfaceio.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 interfaceio.micronaut.discovery.config.ConfigurationClient
-