org.apache.ws.jaxme.util
Class ClassLoader
java.lang.Objectorg.apache.ws.jaxme.util.ClassLoader
public class ClassLoader
extends java.lang.Object
Helper class for working with class loaders.
$Id: ClassLoader.java 231893 2004-07-27 11:19:25Z jochen $static Class | getClass(String pName)- Loads a class with the given name.
|
static Class | getClass(String pName, Class pAssignableTo)- Loads a class with the given name using
getClass(String).
|
getClass
public static Class getClass(String pName)
throws ClassNotFoundExceptionLoads a class with the given name. First attempts to use
the context class loader, then its own class loader.
pName - The fully qualified name of the class being loaded.
- The class with the name
pName.
getClass
public static Class getClass(String pName,
Class pAssignableTo)
throws ClassNotFoundExceptionLoads a class with the given name using getClass(String).
If an instance of the returned class cannot be assigned to the
class or interface pAssignableTo, throws an
IllegalArgumentException.