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

    • AppConfigurationStoreSelects

      public AppConfigurationStoreSelects()
  • Method Details

    • 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.