Skip to content

ApplicationListenerDetector should ignore non-managed bean instances [SPR-14879] #19445

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14879 and commented

As indicated by the Spring Integration team, our ApplicationListenerDetector issues a warning not only for non-singleton inner beans but also for bean instances which are simply not managed by the container at all, i.e. not backed by a bean definition but rather created through the AutowireCapableBeanFactory interface and externally managed or manually registered as a singleton instance via registerSingleton. Let's revise this to only log a warning for actual non-singleton inner bean definitions.


Issue Links:

Referenced from: commits e83c116, 8ae0bd6

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