Skip to content

Add support for starting a context that has been pre-processed #28066

@snicoll

Description

@snicoll

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

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytheme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions