public interface

SmartApplicationListener

implements ApplicationListener<E extends ApplicationEvent> Ordered
org.springframework.context.event.SmartApplicationListener
Known Indirect Subclasses

Class Overview

Extended variant of the standard ApplicationListener interface, exposing further metadata such as the supported event type.

Summary

[Expand]
Inherited Constants
From interface org.springframework.core.Ordered
Public Methods
abstract boolean supportsEventType(Class<? extends ApplicationEvent> eventType)
Determine whether this listener actually supports the given event type.
abstract boolean supportsSourceType(Class<?> sourceType)
Determine whether this listener actually supports the given source type.
[Expand]
Inherited Methods
From interface org.springframework.context.ApplicationListener
From interface org.springframework.core.Ordered

Public Methods

public abstract boolean supportsEventType (Class<? extends ApplicationEvent> eventType)

Determine whether this listener actually supports the given event type.

public abstract boolean supportsSourceType (Class<?> sourceType)

Determine whether this listener actually supports the given source type.