Skip to content

Introduce findAllAnnotationsOnBean variant on ListableBeanFactory #29446

@jhoeller

Description

@jhoeller

RuntimeHintsBeanFactoryInitializationAotProcessor has a need for retrieving all @ImportRuntimeHints annotations for a given bean, coming from its factory method and/or from the bean class hierarchy (most commonly, the configuration class hierarchy). This is currently using an algorithm derived from DefaultListableBeanFactory.findMergedAnnotationOnBean. For co-maintenance and for potential reuse, this variant of the algorithm should rather live in DefaultListableBeanFactory itself, accessible through a findAllAnnotationsOnBean method on the ListableBeanFactory interface.

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