Skip to content

ScheduledAnnotationBeanPostProcessor should unregister tasks on destruction of individual beans [SPR-12216] #16830

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-12216 and commented

At this point, ScheduledAnnotationBeanPostProcessor cancels all tasks on shutdown of the entire application context. While this is generally fine for the typical singleton bean case, @Scheduled may also be placed on non-singleton beans which we should track for individual unregistration on destruction of each such individual bean.

This is a follow-up to #16803.


Issue Links:

Referenced from: commits ab478d1

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions