Class AwsDistributedConfigurationClient
java.lang.Object
io.micronaut.aws.distributedconfiguration.AwsDistributedConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
- Direct Known Subclasses:
SecretsManagerConfigurationClient
public abstract class AwsDistributedConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
Base implementation for AWS services contributing distributed configuration.
- Since:
- 2.8.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionAwsDistributedConfigurationClient
(AwsDistributedConfiguration awsDistributedConfiguration, KeyValueFetcher keyValueFetcher, @Nullable io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NonNull String
adaptPropertyKey
(String originalKey, String groupName) Adapts an original key.protected abstract @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, getDescription
-
Constructor Details
-
AwsDistributedConfigurationClient
public AwsDistributedConfigurationClient(AwsDistributedConfiguration awsDistributedConfiguration, KeyValueFetcher keyValueFetcher, @Nullable @Nullable io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) - Parameters:
awsDistributedConfiguration
- AWS Distributed ConfigurationkeyValueFetcher
- Key Value FetcherapplicationConfiguration
- Application Configuration
-
-
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
-
adaptPropertyKey
Adapts an original key. For example, key could be appended to a prefix in order to avoid naming ambiguity. *- Parameters:
originalKey
- an original property keygroupName
- a property group name- Returns:
- An adapted property key (e.g. key that has been appended to a prefix)
- Since:
- 3.8.0
-
getPropertySourceName
- Returns:
- The name of the property source
-