public class EnvironmentPostProcessingApplicationListener extends Object implements ApplicationListener<ApplicationEnvironmentPreparedEvent>, Ordered
ApplicationListener
that responds to an
ApplicationEnvironmentPreparedEvent
and calls all
EnvironmentPostProcessors
that are available via
spring.factories
.
Post-processors are called in the order defined by
AnnotationAwareOrderComparator
.
SpringFactoriesLoader.loadFactories(Class, ClassLoader)
Modifier and Type | Field and Description |
---|---|
static int |
ORDER |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
EnvironmentPostProcessingApplicationListener() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
onApplicationEvent(ApplicationEnvironmentPreparedEvent event) |
public static final int ORDER
public EnvironmentPostProcessingApplicationListener()
public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event)
onApplicationEvent
in interface ApplicationListener<ApplicationEnvironmentPreparedEvent>
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.