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


git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@491350 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald J. Brown
2006-12-31 00:06:00 +00:00
parent 31087cba6f
commit ec79340cf2
@@ -216,7 +216,7 @@ public class BeanSelectionProvider implements ConfigurationProvider {
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+")");
}