Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce findAllAnnotationsOnBean variant on ListableBeanFactory #29446

Closed
jhoeller opened this issue Nov 8, 2022 · 0 comments
Closed

Introduce findAllAnnotationsOnBean variant on ListableBeanFactory #29446

jhoeller opened this issue Nov 8, 2022 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@jhoeller
Copy link
Contributor

jhoeller commented Nov 8, 2022

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.

@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Nov 8, 2022
@jhoeller jhoeller added this to the 6.0.0-RC4 milestone Nov 8, 2022
@jhoeller jhoeller self-assigned this Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant