Author: jason.greene(a)jboss.com
Date: 2007-01-26 15:49:22 -0500 (Fri, 26 Jan 2007)
New Revision: 2143
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/utils/JavaUtils.java
Log:
Revert 2118. There is no good reason to get rid of this routine!
Modified: trunk/jbossws-core/src/main/java/org/jboss/ws/core/utils/JavaUtils.java
===================================================================
--- trunk/jbossws-core/src/main/java/org/jboss/ws/core/utils/JavaUtils.java 2007-01-26
16:41:43 UTC (rev 2142)
+++ trunk/jbossws-core/src/main/java/org/jboss/ws/core/utils/JavaUtils.java 2007-01-26
20:49:22 UTC (rev 2143)
@@ -520,6 +520,20 @@
return c + source.substring(1);
}
+ public static boolean isLoaded(String className, ClassLoader loader)
+ {
+ try
+ {
+ loadJavaType(className, loader);
+ }
+ catch (ClassNotFoundException e)
+ {
+ return false;
+ }
+
+ return true;
+ }
+
public static String getPackageName(Class<?> clazz)
{
String fullName = clazz.getName();
Show replies by date