"adrian(a)jboss.org" wrote : "kabir.khan(a)jboss.com" wrote :
| | Some code in GenericBeanAspectFactory.doCreate() handled that scenario and pushed
the correct loader to use into the underlying GenericBeanFactory.
| |
|
| How did this work? I don't see anything in the previous GBF code that allowed you
| to override the classloader (other than the metadata).
|
NOTE: Changing the ClassLoaderMetaData on the GenericBeanFactory runtime
object won't help since that is just a copy of what the ControllerContext sees in
the BeanMetaData.
From GenericBeanFactoryMetaData
| if (classLoader != null)
| {
| builder.setClassLoader(classLoader); // Used by the ControllerContext
| builder.addPropertyMetaData("classLoader",
builder.createValue(classLoader)); // Used by the GBF
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193028#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...