Skip to content

Conversation

hrybs
Copy link
Contributor

@hrybs hrybs commented Apr 10, 2021

  1. According to a source code of ApplicationListenerMethodAdapter class we can see that return type of a method annotated with @eventlistener can be not only a Collection<?> but also array.
  2. Method annotated with @eventlistener can have any visibility (public, protected, package-private and private) and can be final and static.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 10, 2021
@sbrannen sbrannen self-assigned this Apr 13, 2021
@sbrannen sbrannen added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 13, 2021
@sbrannen sbrannen changed the title fix EventListener annotation description Improve @EventListener documentation in reference manual Apr 13, 2021
@sbrannen sbrannen closed this in a80c5fc Apr 13, 2021
sbrannen added a commit that referenced this pull request Apr 13, 2021
@sbrannen sbrannen added this to the 5.3.6 milestone Apr 13, 2021
@sbrannen
Copy link
Member

This has been merged into master in a80c5fc and revised in bcc6171.

Thanks

lxbzmy pushed a commit to lxbzmy/spring-framework that referenced this pull request Mar 26, 2022
lxbzmy pushed a commit to lxbzmy/spring-framework that referenced this pull request Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants