[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool
flavia.rainone@jboss.com
do-not-reply at jboss.com
Fri Nov 6 08:48:19 EST 2009
"alesj" wrote : ModuleRegistry gets Module passed in. Perhaps this then:
|
| | ClassLoader cl = ClassLoading.getClassLoaderForModule(module);
| | DeploymentUnit unit = AbstractDeploymentClassLoaderPolicyModule.class.cast(module).getDeploymentUnit();
| | ClassLoader parentUnitLoader = unit.isTopLevel() ? null : unit.getParent().getClassLoader();
| |
|
Thanks, that works. I'll do a clean up of the previous fix and check some todos related to JBREFLECT-65 before committing.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264336#4264336
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264336
More information about the jboss-dev-forums
mailing list