-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed as not planned
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: enhancementA general enhancementA general enhancement
Description
In #43190 (landed in 3.5.0-M1), support for TaskDecorator has been added. If a bean is in the context, it's automatically applied to SimpleAsyncTaskExecutorBuilder and ThreadPoolTaskExecutorBuilder.
However, if there are multiple TaskDecorator beans are in the context, none is applied. That's because we use .getIfUnique.
I think that's somewhat confusing. It would be better to fail if there is more than one bean, or even better, support multiple TaskDecorators (maybe using composition?).
Metadata
Metadata
Assignees
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: enhancementA general enhancementA general enhancement