org.jboss.remoting.serialization
Class ClassLoaderUtility

java.lang.Object
  extended byorg.jboss.remoting.serialization.ClassLoaderUtility

public class ClassLoaderUtility
extends java.lang.Object

Author:
Clebert Suconic

Constructor Summary
ClassLoaderUtility()
           
 
Method Summary
static java.lang.Class loadClass(java.lang.String classname, java.lang.Class clazz)
          Tries to load the class from the current thread's context class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderUtility

public ClassLoaderUtility()
Method Detail

loadClass

public static java.lang.Class loadClass(java.lang.String classname,
                                        java.lang.Class clazz)
                                 throws java.lang.ClassNotFoundException
Tries to load the class from the current thread's context class loader. If not successful, tries to load the class from the current instance.

Parameters:
classname - Desired class.
clazz - Class object used to obtain a class loader if no context class loader is available.
Returns:
Class, or null on failure.
Throws:
java.lang.ClassNotFoundException


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.