Revision: 17909
          http://sourceforge.net/p/gate/code/17909
Author:   markagreenwood
Date:     2014-04-30 11:44:41 +0000 (Wed, 30 Apr 2014)
Log Message:
-----------
allow access to the child classloaders in creation order

Modified Paths:
--------------
    gate/trunk/src/main/gate/util/GateClassLoader.java

Modified: gate/trunk/src/main/gate/util/GateClassLoader.java
===================================================================
--- gate/trunk/src/main/gate/util/GateClassLoader.java  2014-04-30 01:22:32 UTC 
(rev 17908)
+++ gate/trunk/src/main/gate/util/GateClassLoader.java  2014-04-30 11:44:41 UTC 
(rev 17909)
@@ -27,9 +27,11 @@
 import java.beans.Introspector;
 import java.net.URL;
 import java.net.URLClassLoader;
+import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.LinkedHashMap;
 import java.util.LinkedHashSet;
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
@@ -322,4 +324,14 @@
   public void forgetClassLoader(GateClassLoader classloader) {
     if(classloader != null) forgetClassLoader(classloader.getID());
   }
+  
+  /**
+   * Get the child classloaders in creation order.
+   * @return the child classloaders in creation order
+   */
+  public List<GateClassLoader> getChildren() {
+    synchronized(childClassLoaders) {
+     return new ArrayList<GateClassLoader>(childClassLoaders.values());
+    }
+  }
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to