struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [29/50] [abbrv] git commit: WW-4289 Delegates initialisation of bean to Spring
Date Sun, 06 Apr 2014 14:03:42 GMT
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/master
Commit: e12262f035109bfe18dc399f897aac6a1325f900
Parents: 272feec
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Fri Mar 28 15:38:45 2014 +0100
Committer: Lukasz Lenart <lukaszlenart@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);
             }


Mime
View raw message