Class KeyVaultEnvironmentPostProcessor
- java.lang.Object
-
- com.azure.spring.cloud.autoconfigure.keyvault.environment.KeyVaultEnvironmentPostProcessor
-
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor,org.springframework.core.Ordered
public class KeyVaultEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
LeverageEnvironmentPostProcessorto insertKeyVaultPropertySources intoConfigurableEnvironment.KeyVaultPropertySources are constructed according toAzureKeyVaultSecretProperties,- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static intORDER
-
Constructor Summary
Constructors Constructor Description KeyVaultEnvironmentPostProcessor()Construct aKeyVaultEnvironmentPostProcessorinstance with a newDeferredLog.KeyVaultEnvironmentPostProcessor(org.apache.commons.logging.Log logger)Creates a new instance ofKeyVaultEnvironmentPostProcessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()Get the order value of this object.voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)ConstructKeyVaultPropertySources according toAzureKeyVaultSecretProperties, then insert theseKeyVaultPropertySources intoConfigurableEnvironment.
-
-
-
Field Detail
-
ORDER
public static final int ORDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyVaultEnvironmentPostProcessor
public KeyVaultEnvironmentPostProcessor(org.apache.commons.logging.Log logger)
Creates a new instance ofKeyVaultEnvironmentPostProcessor.- Parameters:
logger- The logger used in this class.
-
KeyVaultEnvironmentPostProcessor
public KeyVaultEnvironmentPostProcessor()
Construct aKeyVaultEnvironmentPostProcessorinstance with a newDeferredLog.
-
-
Method Detail
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)ConstructKeyVaultPropertySources according toAzureKeyVaultSecretProperties, then insert theseKeyVaultPropertySources intoConfigurableEnvironment.- Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor- Parameters:
environment- the environment.application- the application.
-
getOrder
public int getOrder()
Get the order value of this object.- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Returns:
- The order value.
-
-