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
Leverage
EnvironmentPostProcessor to insert KeyVaultPropertySources into ConfigurableEnvironment.
KeyVaultPropertySources are constructed according to AzureKeyVaultSecretProperties,- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe order value of theKeyVaultEnvironmentPostProcessor.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct aKeyVaultEnvironmentPostProcessorinstance with a newDeferredLog.KeyVaultEnvironmentPostProcessor(org.apache.commons.logging.Log logger) Creates a new instance ofKeyVaultEnvironmentPostProcessor. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()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 Details
-
ORDER
public static final int ORDERThe order value of theKeyVaultEnvironmentPostProcessor.- See Also:
-
-
Constructor Details
-
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 Details
-
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.
-