public interface GenericApplicationListener extends ApplicationListener<ApplicationEvent>, Ordered
ApplicationListener interface,
exposing further metadata such as the supported event and source type.
As of Spring Framework 4.2, this interface supersedes the Class-based
SmartApplicationListener with full handling of generic event types.
SmartApplicationListener,
GenericApplicationListenerAdapterHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier and Type | Method and Description |
|---|---|
boolean |
supportsEventType(ResolvableType eventType)
Determine whether this listener actually supports the given event type.
|
boolean |
supportsSourceType(Class<?> sourceType)
Determine whether this listener actually supports the given source type.
|
onApplicationEventboolean supportsEventType(ResolvableType eventType)
eventType - the event type (never null)