Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide BeanDefinitionRegistryPostProcessor lifecycle hook [SPR-5595] #10266

Closed
spring-projects-issues opened this issue Mar 22, 2009 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants