public interface GenericApplicationListener extends ApplicationListener<ApplicationEvent>, org.springframework.core.Ordered
ApplicationListener interface,
exposing further metadata such as the supported event type.
As of Spring Framework 4.2, supersedes SmartApplicationListener with
proper handling of generics-based event.
| Modifier and Type | Method and Description |
|---|---|
boolean |
supportsEventType(org.springframework.core.ResolvableType 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.
|
onApplicationEventboolean supportsEventType(org.springframework.core.ResolvableType eventType)
boolean supportsSourceType(java.lang.Class<?> sourceType)