You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mr...@apache.org on 2006/12/31 01:06:00 UTC

svn commit: r491350 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java

Author: mrdon
Date: Sat Dec 30 16:06:00 2006
New Revision: 491350

URL: http://svn.apache.org/viewvc?view=rev&rev=491350
Log:
Fixing so that beans created by the object factory will be injected via Guice.  Apparently,
when you pass Guice your own factory, the created object won't be injected, as the default
InternalFactory is what creates and injects the object.
WW-1582

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java?view=diff&rev=491350&r1=491349&r2=491350
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/config/BeanSelectionProvider.java Sat Dec 30 16:06:00 2006
@@ -216,7 +216,7 @@
         public Object create(Context context) throws Exception {
             ObjectFactory objFactory = context.getContainer().getInstance(ObjectFactory.class);
             try {
-                return objFactory.buildBean(name, null, false);
+                return objFactory.buildBean(name, null, true);
             } catch (ClassNotFoundException ex) {
                 throw new ConfigurationException("Unable to load bean "+type.getName()+" ("+name+")");
             }