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:
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:
@Configurationclasses