org.apache.geronimo.kernel
Class ClassLoading
java.lang.Object
org.apache.geronimo.kernel.ClassLoading
- public class ClassLoading
- extends Object
Utilities for loading classes.
- Version:
- $Revision: 1.2 $ $Date: 2004/05/27 01:06:00 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoading
public ClassLoading()
loadClass
public static Class loadClass(String className)
throws ClassNotFoundException
- Load a class for the given name using the context class loader.
- Parameters:
className
- The name of the Class to be loaded.
- Returns:
- The Class object for the given name.
- Throws:
ClassNotFoundException
- Failed to load Class object.- See Also:
loadClass(String,ClassLoader)
loadClass
public static Class loadClass(String className,
ClassLoader classLoader)
throws ClassNotFoundException
- Load a class for the given name.
Handles loading primitive types as well as VM class and array syntax.
- Parameters:
className
- The name of the Class to be loaded.classLoader
- The class loader to load the Class object from.
- Returns:
- The Class object for the given name.
- Throws:
ClassNotFoundException
- Failed to load Class object.
getClassName
public static String getClassName(Class clazz)
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.