Skip to content

Provide BeanDefinitionRegistryPostProcessor lifecycle hook [SPR-5595] #10266

@spring-projects-issues

Description

@spring-projects-issues

Chris Beams opened SPR-5595 and commented

Per discussions around @Configuration class processing, ConfigurationClassPostProcessor (currently a BeanFactoryPostProcessor) really needs a distinct new lifecycle hook for post-processing the BeanDefinitionRegistry. This hook should happen right before BeanFactoryPostProcessing. It gives the framework a first-class opportunity to detect, enhance and process @Configuration class BeanDefinitions and register new BeanDefinitions into the BeanDefintitionRegistry for each @Bean method parsed.

Affected classes will be:

  • AbstractConfigurationClassPostProcessor
  • ConfigurationClassPostProcessor

This change also has implications for Spring IDE. The current plan is that Spring IDE will detect the presence of the ConfigurationClassPostProcessor and invoke its own @Configuration class processing lifecycle. If a BeanDefinitionRegistryPostProcessor lifecycle is introduced, Spring IDE will have to accomodate this change accordingly.


No further details from SPR-5595

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