Skip to content

Introduce dedicated contract for contributing runtime hints for a bean #35548

@snicoll

Description

@snicoll

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions