Package de.vinado.boot.secrets
Class EnvironmentConfigDataSecretsEnvironmentPostProcessor
java.lang.Object
de.vinado.boot.secrets.SecretsEnvironmentPostProcessor
de.vinado.boot.secrets.EnvironmentConfigDataSecretsEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor,Ordered
public final class EnvironmentConfigDataSecretsEnvironmentPostProcessor
extends SecretsEnvironmentPostProcessor
An environment post-processor that resolves secrets.file.properties from the application.properties file and
overrides existing properties. These property values must be resolvable environment properties.
- Author:
- Vincent Nadoll
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentConfigDataSecretsEnvironmentPostProcessor(org.springframework.boot.logging.DeferredLogFactory logFactory) -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()protected PropertyIndexSuppliergetPropertyIndexSupplier(ConfigurableEnvironment environment) Creates a new instance ofPropertyIndexSupplierproviding a map of configuration property keys and its locations.Methods inherited from class de.vinado.boot.secrets.SecretsEnvironmentPostProcessor
createSecretsEnvironment, getSecretResolver, postProcessEnvironment
-
Field Details
-
CONFIG_DATA_INFIX
- See Also:
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
EnvironmentConfigDataSecretsEnvironmentPostProcessor
public EnvironmentConfigDataSecretsEnvironmentPostProcessor(org.springframework.boot.logging.DeferredLogFactory logFactory)
-
-
Method Details
-
getPropertyIndexSupplier
Description copied from class:SecretsEnvironmentPostProcessorCreates a new instance ofPropertyIndexSupplierproviding a map of configuration property keys and its locations. UsePropertyIndexSupplier.substituteValues(org.springframework.core.env.PropertyResolver)if you provided values which has to be substituted first.- Specified by:
getPropertyIndexSupplierin classSecretsEnvironmentPostProcessor- Parameters:
environment- the currentConfigurableEnvironmentandPropertyResolver; never null- Returns:
- a new instance of a
PropertyIndexSupplier
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceOrdered- Overrides:
getOrderin classSecretsEnvironmentPostProcessor
-