Skip to content

Provide a variant of ListableBeanFactory.findAnnotationOnBean(String, Class<A>) that does not initialize factory beans #27796

Closed
@wilkinsona

Description

@wilkinsona

Affects: 5.3.x

DefaultListableBeanFactory's implementation of findAnnotationOnBean calls getType(String) which allows factory bean init. Assuming that it's intentional for findAnnotationOnBean to initialize factory beans, would it be possible to overload the method with a variant that does not do so? This would help to fix spring-projects/spring-boot#28977 where we're looking for an annotation in a bean factory post-processor.

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