commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1135425 - in /commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath: ClassPathScanner.java ErrorHandler.java
Date Tue, 14 Jun 2011 09:15:44 GMT
Author: simonetripodi
Date: Tue Jun 14 09:15:44 2011
New Revision: 1135425

URL: http://svn.apache.org/viewvc?rev=1135425&view=rev
Log:
method to handle class loading error changed, users could be interested on catching the error
cause as well

Modified:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ClassPathScanner.java
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ErrorHandler.java

Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ClassPathScanner.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ClassPathScanner.java?rev=1135425&r1=1135424&r2=1135425&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ClassPathScanner.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ClassPathScanner.java
Tue Jun 14 09:15:44 2011
@@ -123,7 +123,7 @@ public final class ClassPathScanner
                                             + "' jar entry", e );
                                     }
 
-                                    public void onClassNotFound( String className )
+                                    public void onClassNotFound( String className, Throwable
t )
                                     {
                                         // do nothing, just ignore it
                                     }
@@ -216,7 +216,7 @@ public final class ClassPathScanner
         }
         catch ( Throwable t )
         {
-            errorHandler.onClassNotFound( entry );
+            errorHandler.onClassNotFound( entry, t );
         }
     }
 

Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ErrorHandler.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ErrorHandler.java?rev=1135425&r1=1135424&r2=1135425&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ErrorHandler.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/ErrorHandler.java
Tue Jun 14 09:15:44 2011
@@ -32,8 +32,9 @@ public interface ErrorHandler
      * Invoked if a class found can't be resolved using the current {@link ClassLoader}.
      *
      * @param className the class name not resolved.
+     * @param t the occurred error.
      */
-    void onClassNotFound( String className );
+    void onClassNotFound( String className, Throwable t );
 
     /**
      * Invoked if a JAR/ZIP archive can't be read.



Mime
View raw message