-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytheme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: enhancementA general enhancementA general enhancement
Description
The counterpart of #28065 is that we need a way to start an ApplicationContext that has been pre-processed. Part of the refresh phase for such a context already ran, and therefore should not be invoked again.
Removing a low-level infrastructure, such as a BeanDefinitionRegistryProcessor implementation registered as a @Bean can be dangerous as said bean may implement extra interfaces (bean instance post-processing) that should actually run.
Starting a context this way should also provide the information that it runs in "AOT optimized mode" so that components can decide for themselves if they need to do something or rely on the AOT optimization.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytheme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: enhancementA general enhancementA general enhancement