[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MC upgrade breaks scoped aop tests in trunk
adrian@jboss.org
do-not-reply at jboss.com
Fri Nov 28 08:59:25 EST 2008
"adrian at jboss.org" wrote : "kabir.khan at 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#4193028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193028
More information about the jboss-dev-forums
mailing list