Skip to content

AnnotationConfigApplicationContext does not detect BeanFactoryPostProcessor [SPR-6455] #11121

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 6b2b5c4, 8ab9da4

3 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions