public class EnvironmentPostProcessorApplicationListener extends Object implements SmartApplicationListener, Ordered
SmartApplicationListener used to trigger EnvironmentPostProcessors registered in the spring.factories file.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ORDER
The default order for the processor.
|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
EnvironmentPostProcessorApplicationListener()
Create a new
EnvironmentPostProcessorApplicationListener with
EnvironmentPostProcessor classes loaded via spring.factories. |
EnvironmentPostProcessorApplicationListener(EnvironmentPostProcessorsFactory postProcessorsFactory)
Create a new
EnvironmentPostProcessorApplicationListener with post
processors created by the given factory. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onApplicationEvent(ApplicationEvent event) |
void |
setOrder(int order) |
boolean |
supportsEventType(Class<? extends ApplicationEvent> eventType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListenerId, supportsSourceTypeforPayloadpublic static final int DEFAULT_ORDER
public EnvironmentPostProcessorApplicationListener()
EnvironmentPostProcessorApplicationListener with
EnvironmentPostProcessor classes loaded via spring.factories.public EnvironmentPostProcessorApplicationListener(EnvironmentPostProcessorsFactory postProcessorsFactory)
EnvironmentPostProcessorApplicationListener with post
processors created by the given factory.postProcessorsFactory - the post processors factorypublic boolean supportsEventType(Class<? extends ApplicationEvent> eventType)
supportsEventType in interface SmartApplicationListenerpublic void onApplicationEvent(ApplicationEvent event)
onApplicationEvent in interface ApplicationListener<ApplicationEvent>public int getOrder()
getOrder in interface SmartApplicationListenergetOrder in interface Orderedpublic void setOrder(int order)