@ConfigurationProperties(value="aws.distributed-configuration") public class AwsDistributedConfigurationProperties extends java.lang.Object implements AwsDistributedConfiguration
ConfigurationProperties
implementation of AwsDistributedConfiguration
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_COMMON_APPLICATION_NAME |
static java.lang.String |
DEFAULT_DELIMETER |
static java.lang.String |
DEFAULT_PREFIX |
static boolean |
DEFAULT_SEARCH_ACTIVE_ENVIRONMENTS |
static boolean |
DEFAULT_SEARCH_COMMON_APPLICATION |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
AwsDistributedConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommonApplicationName() |
java.lang.String |
getDelimiter()
Delimiter after prefix and application name.
|
java.lang.String |
getPrefix() |
boolean |
isSearchActiveEnvironments() |
boolean |
isSearchCommonApplication() |
void |
setCommonApplicationName(java.lang.String commonApplicationName)
Default Application name.
|
void |
setDelimiter(java.lang.String delimiter)
Delimiter for AWS Distributed Configuration resources names.
|
void |
setPrefix(java.lang.String prefix)
Prefix for AWS Distributed Configuration resources names.
|
void |
setSearchActiveEnvironments(boolean searchActiveEnvironments)
Search additional paths suffixed with each active environment.
|
void |
setSearchCommonApplication(boolean searchCommonApplication)
Whether paths for the
AwsDistributedConfiguration.getCommonApplicationName() should be searched or not. |
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_PREFIX
public static final java.lang.String DEFAULT_COMMON_APPLICATION_NAME
public static final java.lang.String DEFAULT_DELIMETER
public static final boolean DEFAULT_SEARCH_COMMON_APPLICATION
public static final boolean DEFAULT_SEARCH_ACTIVE_ENVIRONMENTS
public AwsDistributedConfigurationProperties()
@NonNull public java.lang.String getDelimiter()
AwsDistributedConfiguration
getDelimiter
in interface AwsDistributedConfiguration
AwsDistributedConfiguration.getPrefix()
and application name for AWS Distributed Configuration resources names.public void setDelimiter(@NonNull java.lang.String delimiter)
delimiter
- Delimiter for AWS Distributed Configuration resources names.public boolean isSearchActiveEnvironments()
isSearchActiveEnvironments
in interface AwsDistributedConfiguration
public void setSearchActiveEnvironments(boolean searchActiveEnvironments)
searchActiveEnvironments
- True if paths suffixed with micronaut environments should be searchedpublic boolean isSearchCommonApplication()
isSearchCommonApplication
in interface AwsDistributedConfiguration
AwsDistributedConfiguration.getCommonApplicationName()
should be searched or not.public void setSearchCommonApplication(boolean searchCommonApplication)
AwsDistributedConfiguration.getCommonApplicationName()
should be searched or not. Default value (true).searchCommonApplication
- Whether paths for the AwsDistributedConfiguration.getCommonApplicationName()
should be searched or not.@NonNull public java.lang.String getPrefix()
getPrefix
in interface AwsDistributedConfiguration
public void setPrefix(@NonNull java.lang.String prefix)
prefix
- Prefix for AWS Distributed Configuration resources names. For example `/config/`@NonNull public java.lang.String getCommonApplicationName()
getCommonApplicationName
in interface AwsDistributedConfiguration
public void setCommonApplicationName(@NonNull java.lang.String commonApplicationName)
commonApplicationName
- Default Application name. e.g. application