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, wait
getListenerId, supportsSourceType
forPayload
public 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 SmartApplicationListener
public void onApplicationEvent(ApplicationEvent event)
onApplicationEvent
in interface ApplicationListener<ApplicationEvent>
public int getOrder()
getOrder
in interface SmartApplicationListener
getOrder
in interface Ordered
public void setOrder(int order)