Expresso 5-5-0

com.jcorporate.expresso.kernel.util
Class ClassLocator

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.util.ClassLocator

public class ClassLocator
extends Object

Utility class that first tries to locate a context class loader, and if that exists, then give that a try. Otherwise, use Class.forName() raw

Since:
Expresso 5.1
Version:
$Revision: 1.3 $ on $Date: 2003/06/03 06:12:21 $
Author:
Michael Rimov

Constructor Summary
protected ClassLocator()
           
 
Method Summary
static Class loadClass(String className)
          Load a class by its name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLocator

protected ClassLocator()
Method Detail

loadClass

public static Class loadClass(String className)
                       throws ClassNotFoundException
Load a class by its name. Similar to Class.forName() except it looks for a context class loader and tries that if it exists. Otherwise it then just uses the default system classloader

Parameters:
className - the name of the class to load
Returns:
The loaded Class object
Throws:
ClassNotFoundException - if we're unable to find the class

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.