Class VaultEnvironmentPostProcessor
java.lang.Object
com.oracle.cloud.spring.vault.VaultEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.EnvironmentPostProcessor, org.springframework.core.Ordered
public class VaultEnvironmentPostProcessor
extends Object
implements org.springframework.boot.EnvironmentPostProcessor, org.springframework.core.Ordered
Injects a VaultPropertySource for each OCI Vault property source specified in the application properties.
OCI Vault property sources will only be loaded if all of:
- The
com.oracle.cloud.spring.vault.VaultTemplateclass is on the classpath - The
spring.cloud.oci.vault.enabledproperty is not set to anything other thantrue - The
spring.cloud.oci.vault.property-sourcesproperty is not absent/empty
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
VaultEnvironmentPostProcessor
public VaultEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.EnvironmentPostProcessor
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-