mirror of
https://github.com/apache/struts.git
synced 2026-08-11 17:46:57 +00:00
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:
@@ -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+")");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user