spring-framework / org.springframework.context.event / GenericApplicationListenerAdapter

GenericApplicationListenerAdapter

open class GenericApplicationListenerAdapter : GenericApplicationListener, SmartApplicationListener

GenericApplicationListener adapter that determines supported event types through introspecting the generically declared type of the target listener.

Author
Juergen Hoeller

Author
Stephane Nicoll

Since
3.0

See Also
org.springframework.context.ApplicationListener#onApplicationEvent

Constructors

<init>

GenericApplicationListenerAdapter(delegate: ApplicationListener<*>)

Create a new GenericApplicationListener for the given delegate.

Functions

getOrder

open fun getOrder(): Int

onApplicationEvent

open fun onApplicationEvent(event: ApplicationEvent): Unit

supportsEventType

open fun supportsEventType(eventType: ResolvableType): Boolean
open fun supportsEventType(eventType: Class<out ApplicationEvent>): Boolean

supportsSourceType

open fun supportsSourceType(sourceType: Class<*>): Boolean