[jboss-cvs] JBossAS SVN: r94933 - 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
Thu Oct 15 04:25:25 EDT 2009
Author: alesj
Date: 2009-10-15 04:25:25 -0400 (Thu, 15 Oct 2009)
New Revision: 94933
Modified:
projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5/RegisterModuleCallback.java
Log:
Make registry callback true module registry.
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-15 08:11:14 UTC (rev 94932)
+++ projects/jboss-classpool/trunk/src/main/java/org/jboss/classpool/plugins/as5/RegisterModuleCallback.java 2009-10-15 08:25:25 UTC (rev 94933)
@@ -26,15 +26,17 @@
import java.util.Set;
import org.jboss.classloading.spi.dependency.Module;
+import org.jboss.classloading.spi.dependency.ModuleRegistry;
import org.jboss.logging.Logger;
/**
* Use with org.jboss.classpool.jbosscl.JBossClDelegatingClassPoolFactory
*
* @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
* @version $Revision$
*/
-public class RegisterModuleCallback
+public class RegisterModuleCallback implements ModuleRegistry
{
Logger logger = Logger.getLogger(this.getClass());
@@ -56,7 +58,7 @@
public synchronized Set<Module> getUnregisteredModules()
{
- return Collections.unmodifiableSet(new HashSet<Module>(unregisteredModules));
+ return Collections.unmodifiableSet(unregisteredModules);
}
public synchronized void registerModule(Module module)
More information about the jboss-cvs-commits
mailing list