Class SpringCloudConfigurationClient
java.lang.Object
io.micronaut.discovery.spring.config.SpringCloudConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(beans=SpringCloudClientConfiguration.class)
public class SpringCloudConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
A
ConfigurationClient
for Spring Cloud client.- Since:
- 1.0
- Author:
- Thiago Locatelli, graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpringCloudConfigurationClient
(SpringCloudConfigClient springCloudConfigClient, SpringCloudClientConfiguration springCloudConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Nullable ExecutorService executionService) -
Method Summary
Modifier and TypeMethodDescriptionfinal @NonNull String
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
-
SpringCloudConfigurationClient
protected SpringCloudConfigurationClient(SpringCloudConfigClient springCloudConfigClient, SpringCloudClientConfiguration springCloudConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Named("io") @Nullable @Nullable ExecutorService executionService) - Parameters:
springCloudConfigClient
- The Spring Cloud clientspringCloudConfiguration
- The Spring Cloud configurationapplicationConfiguration
- The application configurationexecutionService
- The executor service to use
-
-
Method Details
-
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
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
-