public interface EnvironmentPostProcessor
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.
EnvironmentPostProcessor
processors are encouraged to detect whether Spring's
Ordered
interface has been implemented or if
the @Order
annotation is present and
to sort instances accordingly if so prior to invocation.
Modifier and Type | Method and Description |
---|---|
void |
postProcessEnvironment(ConfigurableEnvironment environment,
SpringApplication application)
Post-process the given
environment . |
void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application)
environment
.environment
- the environment to post-processapplication
- the application to which the environment belongsCopyright © 2017 Pivotal Software, Inc.. All rights reserved.