Skip to content

Add support for recording and reusing the outcome of classpath scanning #35497

@snicoll

Description

@snicoll

We want Spring AOT to be able to replace runtime classpath scanning by an already-prepared index. This is similar to what the component indexer meant to be achieved, but at the application level.

To help with that, we need two new hook points on ClassPathScanningCandidateComponentProvider:

  • A way to mark interest in what an instance does. That could be a callback whenever scanning occurs (and the outcome) for instance. This is used by Spring AOT to record and then make the index available
  • A way to configure ClassPathScanningCandidateComponentProvider so that it uses an index, rather than doing the scanning at runtime.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions