MergedBeanDefinitionPostProcessors apply after all other post-processors (for @PostConstruct to be invoked after other BPPs; SPR-6066)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2369 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2009-11-12 02:10:44 +00:00
parent 5c1a7cc953
commit 10b00ea7db
@@ -702,6 +702,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
public void addBeanPostProcessor(BeanPostProcessor beanPostProcessor) {
Assert.notNull(beanPostProcessor, "BeanPostProcessor must not be null");
this.beanPostProcessors.remove(beanPostProcessor);
this.beanPostProcessors.add(beanPostProcessor);
if (beanPostProcessor instanceof InstantiationAwareBeanPostProcessor) {
this.hasInstantiationAwareBeanPostProcessors = true;