Package de.vinado.boot.secrets
Class FilenameSecretsEnvironmentPostProcessor
java.lang.Object
de.vinado.boot.secrets.SecretsEnvironmentPostProcessor
de.vinado.boot.secrets.FilenameSecretsEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
,Ordered
An environment post-processor that resolves all files from a configurable directory.
- Author:
- Vincent Nadoll
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionFilenameSecretsEnvironmentPostProcessor
(org.springframework.boot.logging.DeferredLogFactory logFactory) -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
protected PropertyIndexSupplier
getPropertyIndexSupplier
(ConfigurableEnvironment environment) Creates a new instance ofPropertyIndexSupplier
providing a map of configuration property keys and its locations.Methods inherited from class de.vinado.boot.secrets.SecretsEnvironmentPostProcessor
createSecretsEnvironment, getSecretResolver, postProcessEnvironment
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
FilenameSecretsEnvironmentPostProcessor
public FilenameSecretsEnvironmentPostProcessor(org.springframework.boot.logging.DeferredLogFactory logFactory)
-
-
Method Details
-
getPropertyIndexSupplier
Description copied from class:SecretsEnvironmentPostProcessor
Creates a new instance ofPropertyIndexSupplier
providing 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:
getPropertyIndexSupplier
in classSecretsEnvironmentPostProcessor
- Parameters:
environment
- the currentConfigurableEnvironment
andPropertyResolver
; never null- Returns:
- a new instance of a
PropertyIndexSupplier
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceOrdered
- Overrides:
getOrder
in classSecretsEnvironmentPostProcessor
-