com.jcorporate.expresso.kernel.util
Class ClassLocator
java.lang.Object
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLocator
protected ClassLocator()
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
Please see www.jcorporate.com for information about new Expresso releases.