As discussed in #35500 (comment) there is a desire to create a dedicated hook point for contributing runtime hints (and runtime hints only) for a bean.
Right now we use BeanRegistrationAotProcessor
for the lack of a better option but the callback provides the whole code generation machinery that such implementations do not need. Having a dedicated callback should achieve the following:
- Ease unit testing as we only need to provide
RuntimeHints
- Clarify the scope so that we can not invoke such implementations at all if runtime hints aren't required.