接口 EventListenerFactory
public interface EventListenerFactory
Strategy interface for creatingApplicationListener
for methods annotated withEventListener
.- 从以下版本开始:
- 4.2
- 作者:
- Stephane Nicoll
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ApplicationListener<?>
createApplicationListener(String beanName, Class<?> type, Method method)
Create anApplicationListener
for the specified method.boolean
supportsMethod(Method method)
Specify if this factory supports the specifiedMethod
.
方法详细资料
supportsMethod
boolean supportsMethod(Method method)
Specify if this factory supports the specifiedMethod
.- 参数:
method
- anEventListener
annotated method- 返回:
true
if this factory supports the specified method
createApplicationListener
ApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method)
Create anApplicationListener
for the specified method.- 参数:
beanName
- the name of the beantype
- the target type of the instancemethod
- theEventListener
annotated method- 返回:
- an application listener, suitable to invoke the specified method