Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @EventListener value() support for event class literals [SPR-13156] #17747

Closed
spring-issuemaster opened this issue Jun 22, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Jun 22, 2015

Bob Tiernay opened SPR-13156 and commented

This allows to have the event parameter as optional if it is unused:

@EventListener(ApplicationReadyEvent.class)
public void start() {
  // ...
}

and also allow for multiple:

@EventListener({ApplicationStartEvent.class, ApplicationReadyEvent.class})
public void start() {
  // ...
}

Affects: 4.2 RC1

Referenced from: commits bf786c3

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jul 8, 2015

Stéphane Nicoll commented

This is now in master and available in a 4.2.0.BUILD-SNAPSHOT in a couple of hours. Could you please give that a try? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.