-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Add API to customize features of Spring AOT #35498
Copy link
Copy link
Open
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: enhancementA general enhancementA general enhancement
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: enhancementA general enhancementA general enhancement
Thus far, Spring AOT is this one thing that does refresh the context, invokes contributors and then dump the state of the
BeanFactoryin generated code. It also write additional files such as native metadata.We want to provide more flexibility in what Spring AOT does.
This issue is about researching what this API could look like with the following customizations hookpoint:
(*) should not be done if the bean factory is locked down. Similarly, writing runtime hints can't be enabled if they aren't processed. This shows that there are features that can't be individual options and rather needs to be linked to something else.
Such feature is linked to additional processing that happens in
ApplicationContextAotGenerator. It may be a new PostProcessor, but it could also be something that needs to be enabled as part ofGenericApplication#refreshForAotProcessing.