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 KeyVaultPropertySource
s into ConfigurableEnvironment
.
KeyVaultPropertySource
s are constructed according to AzureKeyVaultSecretProperties
,- Since:
- 4.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The order value of theKeyVaultEnvironmentPostProcessor
.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionConstruct aKeyVaultEnvironmentPostProcessor
instance with a newDeferredLog
.KeyVaultEnvironmentPostProcessor
(org.apache.commons.logging.Log logger) Creates a new instance ofKeyVaultEnvironmentPostProcessor
. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
Get the order value of this object.void
postProcessEnvironment
(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) ConstructKeyVaultPropertySource
s according toAzureKeyVaultSecretProperties
, then insert theseKeyVaultPropertySource
s 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 aKeyVaultEnvironmentPostProcessor
instance with a newDeferredLog
.
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) ConstructKeyVaultPropertySource
s according toAzureKeyVaultSecretProperties
, then insert theseKeyVaultPropertySource
s intoConfigurableEnvironment
.- Specified by:
postProcessEnvironment
in 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:
getOrder
in interfaceorg.springframework.core.Ordered
- Returns:
- The order value.
-