接口 EventListenerFactory
- 所有已知实现类:
DefaultEventListenerFactory
public interface EventListenerFactory
Strategy interface for creating
ApplicationListener for methods
annotated with EventListener.- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll
-
方法概要
修饰符和类型方法说明createApplicationListener(String beanName, Class<?> type, Method method) Create anApplicationListenerfor the specified method.booleansupportsMethod(Method method) Specify if this factory supports the specifiedMethod.
-
方法详细资料
-
supportsMethod
Specify if this factory supports the specifiedMethod.- 参数:
method- anEventListenerannotated method- 返回:
trueif this factory supports the specified method
-
createApplicationListener
Create anApplicationListenerfor the specified method.- 参数:
beanName- the name of the beantype- the target type of the instancemethod- theEventListenerannotated method- 返回:
- an application listener, suitable to invoke the specified method
-