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 int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public boolean supportsMethod(Method method)
EventListenerFactoryMethod.supportsMethod in interface EventListenerFactorymethod - an EventListener annotated methodtrue if this factory supports the specified methodpublic ApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method)
EventListenerFactoryApplicationListener for the specified method.createApplicationListener in interface EventListenerFactorybeanName - the name of the beantype - the target type of the instancemethod - the EventListener annotated method