接口 GenericApplicationListener
- 所有超级接口:
ApplicationListener<ApplicationEvent>,EventListener,cn.taketoday.core.Ordered,SmartApplicationListener
- 所有已知实现类:
ApplicationListenerMethodAdapter,GenericApplicationListenerAdapter,SourceFilteringListener
Extended variant of the standard
ApplicationListener interface,
exposing further metadata such as the supported event and source type.
this interface supersedes the Class-based
SmartApplicationListener with full handling of generic event types.
it formally extends SmartApplicationListener, adapting
supportsEventType(Class) to supportsEventType(ResolvableType)
with a default method.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Juergen Hoeller
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
方法概要
修饰符和类型方法说明booleansupportsEventType(cn.taketoday.core.ResolvableType eventType) Determine whether this listener actually supports the given event type.default booleansupportsEventType(Class<? extends ApplicationEvent> eventType) OverridesSmartApplicationListener.supportsEventType(Class)with delegation tosupportsEventType(ResolvableType).从接口继承的方法 cn.taketoday.context.ApplicationListener
onApplicationEvent从接口继承的方法 cn.taketoday.context.event.SmartApplicationListener
getListenerId, getOrder, supportsSourceType
-
方法详细资料
-
supportsEventType
OverridesSmartApplicationListener.supportsEventType(Class)with delegation tosupportsEventType(ResolvableType).- 指定者:
supportsEventType在接口中SmartApplicationListener- 参数:
eventType- the event type (nevernull)
-
supportsEventType
boolean supportsEventType(cn.taketoday.core.ResolvableType eventType) Determine whether this listener actually supports the given event type.- 参数:
eventType- the event type (nevernull)
-