[jboss-cvs] JBossAS SVN: r104856 - in projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader: spi/base and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 17 04:57:54 EDT 2010
Author: alesj
Date: 2010-05-17 04:57:53 -0400 (Mon, 17 May 2010)
New Revision: 104856
Modified:
projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/plugins/loader/ClassLoaderToLoaderAdapter.java
projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/spi/base/BaseClassLoaderDomain.java
Log:
Add cache log.
Modified: projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/plugins/loader/ClassLoaderToLoaderAdapter.java
===================================================================
--- projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/plugins/loader/ClassLoaderToLoaderAdapter.java 2010-05-17 08:21:37 UTC (rev 104855)
+++ projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/plugins/loader/ClassLoaderToLoaderAdapter.java 2010-05-17 08:57:53 UTC (rev 104856)
@@ -232,7 +232,12 @@
final ClassLoader classLoader = getClassLoader();
try
{
- return (Class<?>) findLoadedClass.invoke(classLoader, name);
+ Class<?> clazz = (Class<?>) findLoadedClass.invoke(classLoader, name);
+
+ if (clazz != null && log.isTraceEnabled())
+ log.trace("Found " + name + " in cache: " + this);
+
+ return clazz;
}
catch (Exception e)
{
Modified: projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/spi/base/BaseClassLoaderDomain.java
===================================================================
--- projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/spi/base/BaseClassLoaderDomain.java 2010-05-17 08:21:37 UTC (rev 104855)
+++ projects/jboss-cl/trunk/classloader/src/main/java/org/jboss/classloader/spi/base/BaseClassLoaderDomain.java 2010-05-17 08:57:53 UTC (rev 104856)
@@ -1575,6 +1575,7 @@
{
if (log.isTraceEnabled())
log.trace("Found " + name + " in global cache: " + this);
+
return item.clazz;
}
}
More information about the jboss-cvs-commits
mailing list