@Singleton @RequiresSpringCloudConfig @Requires(beans=SpringCloudConfigClient.class) @Requires(property="micronaut.config-client.enabled",value="true",defaultValue="false") public class SpringCloudConfigurationClient extends Object implements ConfigurationClient
ConfigurationClient
for Spring Cloud client.CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
Modifier | Constructor and Description |
---|---|
protected |
SpringCloudConfigurationClient(SpringCloudConfigClient springCloudConfigClient,
SpringCloudConfigConfiguration springCloudConfiguration,
ApplicationConfiguration applicationConfiguration,
String uri,
ExecutorService executionService) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
A description that describes this object.
|
Publisher<PropertySource> |
getPropertySources(Environment environment)
Retrieves all of the
PropertySource registrations for the given environment. |
protected SpringCloudConfigurationClient(SpringCloudConfigClient springCloudConfigClient, SpringCloudConfigConfiguration springCloudConfiguration, ApplicationConfiguration applicationConfiguration, @Value(value="${spring.cloud.config.uri}") String uri, @Named(value="io") @Nullable ExecutorService executionService)
springCloudConfigClient
- The Spring Cloud clientspringCloudConfiguration
- The Spring Cloud configurationapplicationConfiguration
- The application configurationuri
- The Spring cloud config server endpointexecutionService
- The executor service to usepublic Publisher<PropertySource> getPropertySources(Environment environment)
ConfigurationClient
PropertySource
registrations for the given environment.getPropertySources
in interface ConfigurationClient
environment
- The environmentPublisher
that emits zero or many PropertySource
instances discovered for the given environmentpublic final String getDescription()
Described
getDescription
in interface Described