BeanDefinitionRegistryPostProcessor registered via @Bean will not be invoked [SPR-7868] #12525
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
spring-projects-issues commentedJan 9, 2011
•
edited
Henryk Konsek opened SPR-7868 and commented
I created simple bean implementing BeanDefinitionRegistryPostProcessor. All I want to do is to register some bean definition in the BeanDefinitionRegistryPostProcessor#postProcessBeanDefinitionRegistry method. The problem is that code working with ClassPathXmlApplicationContext doesn't work with AnnotationConfigApplicationContext.
My intelligent guess would be that BeanDefinitionRegistryPostProcessor#postProcessBeanDefinitionRegistry is called after JavaConfig bean postprocessor.
I'm attaching minimal Maven project with two unit tests (XmlTest & AnnotationTest) to demonstrate the issue.
Affects: 3.0.5
Attachments:
Issue Links:
@Configuration
classesThe text was updated successfully, but these errors were encountered: