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.