类 DefaultEventListenerFactory
java.lang.Object
cn.taketoday.context.event.DefaultEventListenerFactory
- 所有已实现的接口:
EventListenerFactory,cn.taketoday.core.Ordered
public class DefaultEventListenerFactory
extends Object
implements EventListenerFactory, cn.taketoday.core.Ordered
Default
EventListenerFactory implementation that supports the
regular EventListener annotation.
Used as "catch-all" implementation by default.
- 从以下版本开始:
- 4.0 2021/12/8 21:50
- 作者:
- Stephane Nicoll, Harry Yang
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createApplicationListener(String beanName, Class<?> type, Method method) Create anApplicationListenerfor the specified method.intgetOrder()voidsetOrder(int order) booleansupportsMethod(Method method) Specify if this factory supports the specifiedMethod.
-
构造器详细资料
-
DefaultEventListenerFactory
public DefaultEventListenerFactory()
-
-
方法详细资料
-
setOrder
public void setOrder(int order) -
getOrder
public int getOrder()- 指定者:
getOrder在接口中cn.taketoday.core.Ordered
-
supportsMethod
从接口复制的说明:EventListenerFactorySpecify if this factory supports the specifiedMethod.- 指定者:
supportsMethod在接口中EventListenerFactory- 参数:
method- anEventListenerannotated method- 返回:
trueif this factory supports the specified method
-
createApplicationListener
public ApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method) 从接口复制的说明:EventListenerFactoryCreate anApplicationListenerfor the specified method.- 指定者:
createApplicationListener在接口中EventListenerFactory- 参数:
beanName- the name of the beantype- the target type of the instancemethod- theEventListenerannotated method- 返回:
- an application listener, suitable to invoke the specified method
-