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
  • Constructor Details

    • AwsDistributedConfigurationClient

      public AwsDistributedConfigurationClient(AwsDistributedConfiguration awsDistributedConfiguration, KeyValueFetcher keyValueFetcher, @Nullable @Nullable io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
      Parameters:
      awsDistributedConfiguration - AWS Distributed Configuration
      keyValueFetcher - Key Value Fetcher
      applicationConfiguration - 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 interface io.micronaut.discovery.config.ConfigurationClient
    • adaptPropertyKey

      @NonNull protected abstract @NonNull String adaptPropertyKey(String originalKey, String groupName)
      Adapts an original key. For example, key could be appended to a prefix in order to avoid naming ambiguity. *
      Parameters:
      originalKey - an original property key
      groupName - a property group name
      Returns:
      An adapted property key (e.g. key that has been appended to a prefix)
      Since:
      3.8.0
    • getPropertySourceName

      @NonNull protected abstract @NonNull String getPropertySourceName()
      Returns:
      The name of the property source