[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool
flavia.rainone@jboss.com
do-not-reply at jboss.com
Fri Oct 16 09:00:49 EDT 2009
"alesj" wrote : We are already able to track when the ClassLoader goes away:
| when the Module is discarded --> ClassLoading::removeModule.
|
| And this is what I already fixed, so that the RegisterModuleCallback is part of this ClassLoading::removeModule call.
| It just looks like this doesn't do all the things we need to properly cleanup ClassPools.
|
I'm not properly cleaning up ClassPools:
public synchronized void removeModule(Module module)
| {
| logger.debug("Removing module " + module);
| registeredModules.remove(module);
| unregisteredModules.remove(module);
| }
I need to invoke ClassPoolRepository.getInstance().unregisterClassLoader(ClassLoader). But how do I get the Module's classloader if Module.getClassLoader() is protected?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260761#4260761
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260761
More information about the jboss-dev-forums
mailing list