Class AppConfigurationStoreSelects
- java.lang.Object
-
- com.azure.spring.cloud.config.properties.AppConfigurationStoreSelects
-
public final class AppConfigurationStoreSelects extends Object
Properties on what Selects are checked before loading configurations.
-
-
Field Summary
Fields Modifier and Type Field Description static StringLABEL_SEPARATORSeparator for multiple labels
-
Constructor Summary
Constructors Constructor Description AppConfigurationStoreSelects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKeyFilter()StringgetLabel()Used for Generating Property Source name only.String[]getLabelFilter(List<String> profiles)StringgetLabelFilterText(List<String> profiles)Get all labels as a single StringAppConfigurationStoreSelectssetKeyFilter(String keyFilter)AppConfigurationStoreSelectssetLabelFilter(String labelFilter)voidvalidateAndInit()Validates key-filter and label-filter are valid.
-
-
-
Field Detail
-
LABEL_SEPARATOR
public static final String LABEL_SEPARATOR
Separator for multiple labels- See Also:
- Constant Field Values
-
-
Method Detail
-
getKeyFilter
public String getKeyFilter()
- Returns:
- the keyFilter
-
setKeyFilter
public AppConfigurationStoreSelects setKeyFilter(String keyFilter)
- Parameters:
keyFilter- the keyFilter to set- Returns:
- AppConfigurationStoreSelects
-
getLabelFilter
public String[] getLabelFilter(List<String> profiles)
- Parameters:
profiles- List of current Spring profiles to default to using is null label is set.- Returns:
- List of reversed label values, which are split by the separator, the latter label has higher priority
-
getLabelFilterText
public String getLabelFilterText(List<String> profiles)
Get all labels as a single String- Parameters:
profiles- current user profiles- Returns:
- comma separated list of labels
-
getLabel
public String getLabel()
Used for Generating Property Source name only.- Returns:
- String all labels combined.
-
setLabelFilter
public AppConfigurationStoreSelects setLabelFilter(String labelFilter)
- Parameters:
labelFilter- the labelFilter to set- Returns:
- AppConfigurationStoreSelects
-
validateAndInit
@PostConstruct public void validateAndInit()
Validates key-filter and label-filter are valid.
-
-