commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohs...@apache.org
Subject svn commit: r232417 - in /jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow: ContinuationClassLoader.java ContinuationURLClassLoader.java
Date Sat, 13 Aug 2005 04:48:20 GMT
Author: kohsuke
Date: Fri Aug 12 21:48:15 2005
New Revision: 232417

URL: http://svn.apache.org/viewcvs?rev=232417&view=rev
Log:
renamed ContinuationURLClassLoader to ContinuationClassLoader

Added:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
      - copied, changed from r232416, jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationURLClassLoader.java
Removed:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationURLClassLoader.java

Copied: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
(from r232416, jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationURLClassLoader.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java?p2=jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java&p1=jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationURLClassLoader.java&r1=232416&r2=232417&rev=232417&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationURLClassLoader.java
(original)
+++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
Fri Aug 12 21:48:15 2005
@@ -39,7 +39,7 @@
 import org.apache.commons.logging.LogFactory;
 
 /**
- * {@link URLClassLoader} with bytecode instrumentation for javaflow.
+ * ClassLoader with bytecode instrumentation for javaflow.
  *
  * <p>
  * This <tt>ClassLoader</tt> works like an <tt>URLClassLoader</tt>
@@ -56,18 +56,11 @@
  * jar file.
  *
  * <p>
- * When you mess up your class loader hierarchy or jar file placement,
- * this class loader tends to give you {@link NoClassDefFoundError} early,
- * unlike {@link ContinuationClassLoader}.
- *
- * <p>
  * This code is based on <tt>AntClassLoader</tt>.
- *
- * @see ContinuationClassLoader
  */
-public final class ContinuationURLClassLoader extends ClassLoader {
+public final class ContinuationClassLoader extends ClassLoader {
 
-    private final static Log log = LogFactory.getLog(ContinuationURLClassLoader.class);
+    private final static Log log = LogFactory.getLog(ContinuationClassLoader.class);
 
     /**
      * An enumeration of all resources of a given name found within the
@@ -75,7 +68,7 @@
      * ClassLoader.findResources method, which is in
      * turn used by the ClassLoader.getResources method.
      *
-     * @see ContinuationURLClassLoader#findResources(String)
+     * @see ContinuationClassLoader#findResources(String)
      * @see java.lang.ClassLoader#getResources(String)
      */
     private class ResourceEnumeration implements Enumeration {
@@ -137,7 +130,7 @@
          * <code>null</code>.
          */
         private void findNextResource() {
-            synchronized(ContinuationURLClassLoader.this) {
+            synchronized(ContinuationClassLoader.this) {
                 URL url = null;
                 while ((pathElementsIndex < pathComponents.size())
                         && (url == null)) {
@@ -216,7 +209,7 @@
      *      May be <code>null</code>, in which case no path
      *      elements are set up to start with.
      */
-    public ContinuationURLClassLoader(ClassLoader parent, Collection classpath) {
+    public ContinuationClassLoader(ClassLoader parent, Collection classpath) {
         this(parent,new BcelClassTransformer(),classpath);
     }
 
@@ -233,7 +226,7 @@
      *      May be <code>null</code>, in which case no path
      *      elements are set up to start with.
      */
-    public ContinuationURLClassLoader(ClassLoader parent, ClassTransformer transformer, Collection
classpath) {
+    public ContinuationClassLoader(ClassLoader parent, ClassTransformer transformer, Collection
classpath) {
         this.transformer = transformer;
         if (parent != null) {
             setParent(parent);
@@ -254,7 +247,7 @@
      */
     public void setParent(ClassLoader parent) {
         if (parent == null) {
-            this.parent = ContinuationURLClassLoader.class.getClassLoader();
+            this.parent = ContinuationClassLoader.class.getClassLoader();
         } else {
             this.parent = parent;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message