public class EnvironmentPostProcessorApplicationListener
extends java.lang.Object
implements org.springframework.context.event.SmartApplicationListener, org.springframework.core.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.
|
Constructor and Description |
---|
EnvironmentPostProcessorApplicationListener()
Create a new
EnvironmentPostProcessorApplicationListener with
EnvironmentPostProcessor classes loaded through 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(org.springframework.context.ApplicationEvent event) |
void |
setOrder(int order) |
boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final int DEFAULT_ORDER
public EnvironmentPostProcessorApplicationListener()
EnvironmentPostProcessorApplicationListener
with
EnvironmentPostProcessor
classes loaded through spring.factories
.public EnvironmentPostProcessorApplicationListener(EnvironmentPostProcessorsFactory postProcessorsFactory)
EnvironmentPostProcessorApplicationListener
with post
processors created by the given factory.postProcessorsFactory
- the post processors factorypublic boolean supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType
in interface org.springframework.context.event.SmartApplicationListener
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public int getOrder()
getOrder
in interface org.springframework.context.event.SmartApplicationListener
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)