public abstract class SecretsEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, Ordered
An EnvironmentPostProcessor that loads and applies a SecretsEnvironment to Spring's Environment.
This component implements Ordered to draw attention to the fact, that SecretsEnvironmentPostProcessor
must be executed after ConfigDataEnvironmentPostProcessor in order to override configuration properties. I'd
recommend to set the value to ConfigDataEnvironmentPostProcessor.ORDER + n.
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
SecretsEnvironmentPostProcessor(org.springframework.boot.logging.DeferredLogFactory logFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected SecretsEnvironment |
createSecretsEnvironment(ConfigurableEnvironment environment,
ResourceLoader resourceLoader)
Creates a new instance of
SecretsEnvironment. |
int |
getOrder() |
protected abstract PropertyIndexSupplier |
getPropertyIndexSupplier(ConfigurableEnvironment environment)
Creates a new instance of
PropertyIndexSupplier providing a map of configuration property keys and its
locations. |
protected SecretResolver |
getSecretResolver(ResourceLoader resourceLoader)
Creates a new instance of a
SecretResolver. |
void |
postProcessEnvironment(ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application) |
public SecretsEnvironmentPostProcessor(org.springframework.boot.logging.DeferredLogFactory logFactory)
public void postProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessorprotected SecretsEnvironment createSecretsEnvironment(ConfigurableEnvironment environment, ResourceLoader resourceLoader)
SecretsEnvironment.environment - the environment to post-processresourceLoader - the resource loader to be usedSecretsEnvironmentprotected SecretResolver getSecretResolver(ResourceLoader resourceLoader)
SecretResolver.resourceLoader - Spring's ResourceLoader creating Resources;
never nullSecretResolverprotected abstract PropertyIndexSupplier getPropertyIndexSupplier(ConfigurableEnvironment environment)
PropertyIndexSupplier providing a map of configuration property keys and its
locations. Use PropertyIndexSupplier.substituteValues(org.springframework.core.env.PropertyResolver) if
you provided values which has to be substituted first.environment - the current ConfigurableEnvironment and
PropertyResolver; never nullPropertyIndexSupplierCopyright © 2023. All rights reserved.