Expose shouldHandle(ApplicationEvent)
in ApplicationListenerMethodAdapter
#31295
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
It would be nice if
ApplicationListenerMethodAdapter
exposed a variant of its already existing but privateshouldHandle(ApplicationEvent, Object[])
to inspect whether a listener is actually interested in an event instance. This would allow finding out whether, for example, a condition defined in@(Transactional)EventListener
will ultimately cause the event instance not being handled, even though the listener might be generally interested in events of a particular type.The text was updated successfully, but these errors were encountered: