Interface EnvironmentPostProcessor
- All Known Implementing Classes:
CloudFoundryVcapEnvironmentPostProcessor, ConfigDataEnvironmentPostProcessor, DevToolsHomePropertiesPostProcessor, DevToolsPropertyDefaultsPostProcessor, RandomValuePropertySourceEnvironmentPostProcessor, ReactorEnvironmentPostProcessor, SpringApplicationJsonEnvironmentPostProcessor, SystemEnvironmentPropertySourceEnvironmentPostProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Allows for customization of the application's
Environment prior to the
application context being refreshed.
EnvironmentPostProcessor implementations have to be registered in
META-INF/spring.factories, using the fully qualified name of this class as the
key. Implementations may implement the Ordered
interface or use an @Order annotation
if they wish to be invoked in specific order.
EnvironmentPostProcessor implementations may optionally take the following
constructor parameters:
DeferredLogFactory- A factory that can be used to create loggers with output deferred until the application has been fully prepared (allowing the environment itself to configure logging levels).ConfigurableBootstrapContext- A bootstrap context that can be used to store objects that may be expensive to create, or need to be shared (BootstrapContextorBootstrapRegistrymay also be used).
- Since:
- 4.0.0
- Author:
- Andy Wilkinson, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment.
-
Method Details
-
postProcessEnvironment
Post-process the givenenvironment.- Parameters:
environment- the environment to post-processapplication- the application to which the environment belongs
-