Introduce findAllAnnotationsOnBean variant on ListableBeanFactory · Issue #29446 · spring-projects/spring-framework · GitHub
Skip to content

Introduce findAllAnnotationsOnBean variant on ListableBeanFactory #29446

Closed

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.

Activity

  1. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    on Nov 8, 2022
  2. added this to the 6.0.0-RC4 milestone on Nov 8, 2022
  3. self-assigned this
    on Nov 8, 2022
  4. added a commit that references this issue on Sep 17, 2026
    86d4557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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