struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1181629 - /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java
Date Tue, 11 Oct 2011 06:00:57 GMT
Author: lukaszlenart
Date: Tue Oct 11 06:00:56 2011
New Revision: 1181629

URL: http://svn.apache.org/viewvc?rev=1181629&view=rev
Log:
WW-3692 - uses containsBean() method instead of containsBeanDefinition() to resolve aliases
of a bean to find

Modified:
    struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java

Modified: struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java?rev=1181629&r1=1181628&r2=1181629&view=diff
==============================================================================
--- struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java
(original)
+++ struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java
Tue Oct 11 06:00:56 2011
@@ -145,9 +145,9 @@ public class SpringObjectFactory extends
      */
     @Override
     public Object buildBean(String beanName, Map<String, Object> extraContext, boolean
injectInternal) throws Exception {
-        Object o = null;
+        Object o;
         
-        if (appContext.containsBeanDefinition(beanName)) {
+        if (appContext.containsBean(beanName)) {
             o = appContext.getBean(beanName);
         } else {
             Class beanClazz = getClassInstance(beanName);



Mime
View raw message