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.
| 构造器和说明 |
|---|
DefaultEventListenerFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.springframework.core.Orderedpublic boolean supportsMethod(Method method)
EventListenerFactoryMethod.supportsMethod 在接口中 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 在接口中 EventListenerFactorybeanName - the name of the beantype - the target type of the instancemethod - the EventListener annotated method