Package com.azure.spring.cloud.config
Class AppConfigurationPropertySourceLocator
java.lang.Object
com.azure.spring.cloud.config.AppConfigurationPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
public final class AppConfigurationPropertySourceLocator
extends Object
implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
Locates Azure App Configuration Property Sources.
-
Constructor Summary
ConstructorDescriptionAppConfigurationPropertySourceLocator
(AppConfigurationProperties properties, AppConfigurationProviderProperties appProperties, ClientStore clients, KeyVaultCredentialProvider keyVaultCredentialProvider, SecretClientBuilderSetup keyVaultClientProvider, KeyVaultSecretProvider keyVaultSecretProvider) Loads all Azure App Configuration Property Sources configured. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.env.PropertySource<?>
locate
(org.springframework.core.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
locateCollection
-
Constructor Details
-
AppConfigurationPropertySourceLocator
public AppConfigurationPropertySourceLocator(AppConfigurationProperties properties, AppConfigurationProviderProperties appProperties, ClientStore clients, KeyVaultCredentialProvider keyVaultCredentialProvider, SecretClientBuilderSetup keyVaultClientProvider, KeyVaultSecretProvider keyVaultSecretProvider) Loads all Azure App Configuration Property Sources configured.- Parameters:
properties
- Configurations for stores to be loaded.appProperties
- Configurations for the library.clients
- Clients for connecting to Azure App Configuration.keyVaultCredentialProvider
- optional provider for Key Vault CredentialskeyVaultClientProvider
- optional provider for modifying the Key Vault ClientkeyVaultSecretProvider
- optional provider for loading secrets instead of connecting to Key Vault
-
-
Method Details
-
locate
public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment) - Specified by:
locate
in interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-