public class DefaultEventListenerFactory extends Object implements EventListenerFactory, org.springframework.core.Ordered
EventListenerFactory
implementation that supports the
regular EventListener
annotation.
Used as "catch-all" implementation by default.
Constructor and Description |
---|
DefaultEventListenerFactory() |
Modifier and Type | Method and Description |
---|---|
ApplicationListener<?> |
createApplicationListener(String beanName,
Class<?> type,
Method method)
Create an
ApplicationListener for the specified method. |
int |
getOrder() |
void |
setOrder(int order) |
boolean |
supportsMethod(Method method)
Specify if this factory supports the specified
Method . |
public void setOrder(int order)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public boolean supportsMethod(Method method)
EventListenerFactory
Method
.supportsMethod
in interface EventListenerFactory
method
- an EventListener
annotated methodtrue
if this factory supports the specified methodpublic ApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method)
EventListenerFactory
ApplicationListener
for the specified method.createApplicationListener
in interface EventListenerFactory
beanName
- the name of the beantype
- the target type of the instancemethod
- the EventListener
annotated method