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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Use spring.cloud.azure.appconfiguration[0].selectsgetName()
Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsboolean
void
setDefaultContext
(String defaultContext) Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsvoid
setEnabled
(boolean enabled) void
setManagedIdentity
(AppConfigManagedIdentityProperties managedIdentity) void
Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsvoid
setPushRefresh
(Boolean pushRefresh) void
setRefreshInterval
(Duration refreshInterval) void
setStores
(List<ConfigStore> stores) void
Validates at least one store is configured for use, and they are valid.
-
Field Details
-
CONFIG_PREFIX
Prefix for client configurations for connecting to configuration stores.- See Also:
-
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
- Returns:
- the stores
-
setStores
- Parameters:
stores
- the stores to set
-
getDefaultContext
Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsThe prefixed used before all keys loaded.- Returns:
- null
-
setDefaultContext
Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsOverrides the default context of `application`.- Parameters:
defaultContext
- Key Prefix.
-
getName
Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsUsed to override the spring.application.name value- Returns:
- name
-
setName
Deprecated.Use spring.cloud.azure.appconfiguration[0].selectsUsed to override the spring.application.name value- Parameters:
name
- application name in config key.
-
getManagedIdentity
- Returns:
- the managedIdentity
-
setManagedIdentity
- Parameters:
managedIdentity
- the managedIdentity to set
-
getPushRefresh
- Returns:
- the pushRefresh
-
setPushRefresh
- Parameters:
pushRefresh
- the pushRefresh to set
-
getRefreshInterval
- Returns:
- the refreshInterval
-
setRefreshInterval
- Parameters:
refreshInterval
- the refreshInterval to set
-
validateAndInit
Validates at least one store is configured for use, and they are valid.- Throws:
IllegalArgumentException
- when duplicate endpoints are configured
-