WW-4289 Delegates initialisation of bean to Spring
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/e12262f0 Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/e12262f0 Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/e12262f0 Branch: refs/heads/develop Commit: e12262f035109bfe18dc399f897aac6a1325f900 Parents: 272feec Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Fri Mar 28 15:38:45 2014 +0100 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Fri Mar 28 15:38:45 2014 +0100 ---------------------------------------------------------------------- .../java/com/opensymphony/xwork2/spring/SpringObjectFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/e12262f0/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java ---------------------------------------------------------------------- diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java b/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java index 1ba7402..9ba065d 100644 --- a/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java +++ b/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java @@ -178,7 +178,7 @@ public class SpringObjectFactory extends ObjectFactory implements ApplicationCon } else { bean = autoWiringFactory.autowire(clazz, AutowireCapableBeanFactory.AUTOWIRE_CONSTRUCTOR, false); bean = autoWiringFactory.applyBeanPostProcessorsBeforeInitialization(bean, bean.getClass().getName()); - // We don't need to call the init-method since one won't be registered. + bean = autoWiringFactory.initializeBean(bean, bean.getClass().getName()); bean = autoWiringFactory.applyBeanPostProcessorsAfterInitialization(bean, bean.getClass().getName()); return autoWireBean(bean, autoWiringFactory); }