public interface SmartApplicationListener extends ApplicationListener<ApplicationEvent>, Ordered
ApplicationListener
interface,
exposing further metadata such as the supported event type.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
boolean |
supportsEventType(java.lang.Class<? extends ApplicationEvent> eventType)
Determine whether this listener actually supports the given event type.
|
boolean |
supportsSourceType(java.lang.Class<?> sourceType)
Determine whether this listener actually supports the given source type.
|
onApplicationEvent
boolean supportsEventType(java.lang.Class<? extends ApplicationEvent> eventType)
boolean supportsSourceType(java.lang.Class<?> sourceType)