[jboss-cvs] JBossAS SVN: r95040 - projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Oct 16 10:39:48 EDT 2009
Author: flavia.rainone at jboss.com
Date: 2009-10-16 10:39:48 -0400 (Fri, 16 Oct 2009)
New Revision: 95040
Modified:
projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5/RegisterModuleCallback.java
Log:
[JBREFLECT-62] Added a call to ClassPoolRepository.unregisterClassLoader() at RegisterModuleCallback.removeModule(Module) method.
Modified: projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5/RegisterModuleCallback.java
===================================================================
--- projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5/RegisterModuleCallback.java 2009-10-16 14:15:48 UTC (rev 95039)
+++ projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5/RegisterModuleCallback.java 2009-10-16 14:39:48 UTC (rev 95040)
@@ -25,8 +25,10 @@
import java.util.HashSet;
import java.util.Set;
+import org.jboss.classloading.spi.dependency.ClassLoading;
import org.jboss.classloading.spi.dependency.Module;
import org.jboss.classloading.spi.dependency.ModuleRegistry;
+import org.jboss.classpool.spi.ClassPoolRepository;
import org.jboss.logging.Logger;
/**
@@ -52,6 +54,8 @@
public synchronized void removeModule(Module module)
{
logger.debug("Removing module " + module);
+ ClassLoader classLoader = ClassLoading.getClassLoaderForModule(module);
+ ClassPoolRepository.getInstance().unregisterClassLoader(classLoader);
registeredModules.remove(module);
unregisteredModules.remove(module);
}
More information about the jboss-cvs-commits
mailing list