}
public void unregisterClassLoader(ClassLoader classLoader, Module module)
{
ScopedClassPool classPool = registeredModules.remove(module);
if (classLoader == null)
{
if (classPool == null)
{
//throw new IllegalStateException("Module " + module + " is not registered");
//TODO JBREFLECT-116
if (log.isDebugEnabled())
log.warn("Module " + module + " is not registered");
return;
}
classPool.close();
}
else
{
unregisterClassLoader(classLoader);
}