You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2011/01/13 17:03:10 UTC
svn commit: r1058633 -
/activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/ClassFinder.scala
Author: chirino
Date: Thu Jan 13 16:03:10 2011
New Revision: 1058633
URL: http://svn.apache.org/viewvc?rev=1058633&view=rev
Log:
If class finder cannot load class log a debug message.
Modified:
activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/ClassFinder.scala
Modified: activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/ClassFinder.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/ClassFinder.scala?rev=1058633&r1=1058632&r2=1058633&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/ClassFinder.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/ClassFinder.scala Thu Jan 13 16:03:10 2011
@@ -20,6 +20,9 @@ import java.io.InputStream
import java.util.Properties
import scala.collection.mutable.ListBuffer
+
+object ClassFinder extends Log
+
/**
* <p>
* Used to discover classes using the META-INF discovery trick.
@@ -28,6 +31,7 @@ import scala.collection.mutable.ListBuff
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
*/
class ClassFinder[T](val path:String, val loaders:Array[ClassLoader]) {
+ import ClassFinder._
def this(path:String) = this(path, Array(Thread.currentThread.getContextClassLoader))
@@ -72,7 +76,7 @@ class ClassFinder[T](val path:String, va
t += instance
} catch {
case e2: Throwable =>
- e.printStackTrace
+ debug(e, "Could not load the class")
}
}
}