Description
Dave King opened SPR-6455 and commented
The documentation in several places says:
"Application contexts can auto-detect BeanFactoryPostProcessor beans in their bean definitions and apply them before any other beans get created. "
Thus @Bean
BeanFactoryPostProcessor getSomeName(){ return new BeanFactoryPostProcessorImpl();} in a @Configuration
class should cause the BeanFactoryPostProcessor run in the AnnotationConfigApplicationContext. Doesn't work. The callback method is never called. The bean is created, but only after other beans have been created.
This breaks the documented contract for an ApplicationContext.
Affects: 3.0 RC2
Reference URL: http://forum.springsource.org/showthread.php?t=81044
Issue Links:
- @Value does not work with AnnotationConfigApplicationContext [SPR-6611] #11277
@Value
does not work with AnnotationConfigApplicationContext - PropertyPlaceholder does not work for @ImportResource in JavaConfig [SPR-6645] #11311 PropertyPlaceholder does not work for
@ImportResource
in JavaConfig
Referenced from: commits 6b2b5c4, 8ab9da4
3 votes, 5 watchers