You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the javadoc of org.springframework.context.event.EventListener.classes() says the following:
The event classes that this listener handles.
If this attribute is specified with a single value, the annotated method may optionally accept a single parameter. However, if this attribute is specified with multiple values, the annotated method must not declare any parameters.
If I have a hierarchy of events or if some events implement a common interface, I would like to be able to declare which event classes this listener must listen to and have the method accept a single parameter which would be a common ancestor of my events or a common interface.