Class AppConfigurationProperties

java.lang.Object
com.azure.spring.cloud.config.properties.AppConfigurationProperties

@Validated @ConfigurationProperties(prefix="spring.cloud.azure.appconfiguration") @Import(AppConfigurationProviderProperties.class) public final class AppConfigurationProperties extends Object
Properties for all Azure App Configuration stores that are loaded.
  • Field Details

    • CONFIG_PREFIX

      public static final String CONFIG_PREFIX
      Prefix for client configurations for connecting to configuration stores.
      See Also:
    • LABEL_SEPARATOR

      public static final String LABEL_SEPARATOR
      Separator for multiple labels.
      See Also:
  • Constructor Details

    • AppConfigurationProperties

      public AppConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns:
      the enabled
    • setEnabled

      public void setEnabled(boolean enabled)
      Parameters:
      enabled - the enabled to set
    • getStores

      public List<ConfigStore> getStores()
      Returns:
      the stores
    • setStores

      public void setStores(List<ConfigStore> stores)
      Parameters:
      stores - the stores to set
    • getDefaultContext

      @Deprecated public String getDefaultContext()
      Deprecated.
      Use spring.cloud.azure.appconfiguration[0].selects
      The prefixed used before all keys loaded.
      Returns:
      null
    • setDefaultContext

      @Deprecated public void setDefaultContext(String defaultContext)
      Deprecated.
      Use spring.cloud.azure.appconfiguration[0].selects
      Overrides the default context of `application`.
      Parameters:
      defaultContext - Key Prefix.
    • getName

      @Deprecated @Nullable public String getName()
      Deprecated.
      Use spring.cloud.azure.appconfiguration[0].selects
      Used to override the spring.application.name value
      Returns:
      name
    • setName

      @Deprecated public void setName(@Nullable String name)
      Deprecated.
      Use spring.cloud.azure.appconfiguration[0].selects
      Used to override the spring.application.name value
      Parameters:
      name - application name in config key.
    • getManagedIdentity

      public AppConfigManagedIdentityProperties getManagedIdentity()
      Returns:
      the managedIdentity
    • setManagedIdentity

      public void setManagedIdentity(AppConfigManagedIdentityProperties managedIdentity)
      Parameters:
      managedIdentity - the managedIdentity to set
    • getPushRefresh

      public Boolean getPushRefresh()
      Returns:
      the pushRefresh
    • setPushRefresh

      public void setPushRefresh(Boolean pushRefresh)
      Parameters:
      pushRefresh - the pushRefresh to set
    • getRefreshInterval

      public Duration getRefreshInterval()
      Returns:
      the refreshInterval
    • setRefreshInterval

      public void setRefreshInterval(Duration refreshInterval)
      Parameters:
      refreshInterval - the refreshInterval to set
    • validateAndInit

      @PostConstruct public void validateAndInit()
      Validates at least one store is configured for use, and they are valid.
      Throws:
      IllegalArgumentException - when duplicate endpoints are configured