Skip to content

AsyncAnnotationBeanPostProcessor could find TaskExecutor by type/name [SPR-13248] #17839

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

Closed
spring-projects-issues opened this issue Jul 17, 2015 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 17, 2015

Juergen Hoeller opened SPR-13248 and commented

Along the lines of #17827, AsyncAnnotationBeanPostProcessor could find a TaskExecutor bean by type and/or name in the context, avoiding the need to implement AsyncConfigurer for that purpose.


Issue Links:

Referenced from: commits c3e57dd

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jul 17, 2015

Juergen Hoeller commented

This turns out to be easy enough, so I've rolled it in for 4.2 GA still.

Note that we search for a TaskExecutor bean... not a plain Executor since that would match with ScheduledExecutorService as well, which is unusable for our purposes here. TaskExecutor is more clearly designed for it and clearly differentiated from scheduler types. And we fall back to a bean named "taskExecutor", if any, along the lines of #17827.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants