-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Pavel Mukhataev opened SPR-14783 and commented
Spring bean doesn't get subscribed to application events if inner bean is used as a property for bean that implements BeanFactoryPostProcessor.
BeanFactoryPostProcessor bean itself get subscribed to application events, while it's inner beans are not.
Source code to reproduce problem: https://github.com/mpashka/checkSpringInitialization
Affects: 4.3.3
Reference URL: https://github.com/mpashka/checkSpringInitialization
Issue Links:
- Application event listeners not removed from listener registry on listener destroy [SPR-7856] #12513 Application event listeners not removed from listener registry on listener destroy
- ApplicationListener callbacks to be supported for inner beans as well [SPR-6049] #10718 ApplicationListener callbacks to be supported for inner beans as well
- Avoid scoped destruction callbacks in case of no post-processor actually applying [SPR-13744] #18317 Avoid scoped destruction callbacks in case of no post-processor actually applying
- ApplicationListenerDetector should prevent serialization of its ApplicationContext reference [SPR-14214] #18788 ApplicationListenerDetector should prevent serialization of its ApplicationContext reference
- ApplicationListenerDetector should ignore non-managed bean instances [SPR-14879] #19445 ApplicationListenerDetector should ignore non-managed bean instances
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement