ScheduledAnnotationBeanPostProcessor should unregister tasks on destruction of individual beans [SPR-12216] #16830
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
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:
@Scheduled
methods in@Lazy
beans are not scheduledReferenced from: commits ab478d1
The text was updated successfully, but these errors were encountered: