Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions