Skip to content

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

Closed

Description

@spring-projects-issues

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

Activity

  1. spring-projects-issues commented on Jul 17, 2015

    @spring-projects-issues
    CollaboratorAuthor

    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

  2. added this to the 4.2 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions