| java.lang.Object org.apache.cactus.internal.util.ClassLoaderUtils
ClassLoaderUtils | public class ClassLoaderUtils (Code) | | Utiliy methods related to class loading in a webapp environment.
version: $Id: ClassLoaderUtils.java 238991 2004-05-22 11:34:50Z vmassol $ |
loadClass | public static Class loadClass(String theClassName, Class theReferrer) throws ClassNotFoundException(Code) | | Try loading a class first by using the context class loader or by using
the classloader of the referrer class if the context classloader failed
to load the class.
Parameters: theClassName - the name of the test class Parameters: theReferrer - the class will be loaded using the classloader whichhas loaded this referrer class the class object the test class to call exception: ClassNotFoundException - if the class cannot be loaded througheither classloader |
loadClassFromContextClassLoader | public static Class loadClassFromContextClassLoader(String theClassName) throws ClassNotFoundException(Code) | | Try loading class using the Context class loader.
Parameters: theClassName - the class to load the Class object for the class to load exception: ClassNotFoundException - if the class cannot be loaded throughthis class loader |
loadClassFromWebappClassLoader | public static Class loadClassFromWebappClassLoader(String theClassName, Class theReferrer) throws ClassNotFoundException(Code) | | Try loading class using the Webapp class loader.
Parameters: theClassName - the class to load Parameters: theReferrer - the class will be loaded using the classloader whichhas loaded this referrer class the Class object for the class to load exception: ClassNotFoundException - if the class cannot be loaded throughthis class loader |
loadPropertyResourceBundle | public static ResourceBundle loadPropertyResourceBundle(String theName, Class theReferrer)(Code) | | Try loading a resource bundle from either the context class loader or
the
Parameters: theName - the resource bundle name Parameters: theReferrer - the resource bundle will be loaded using theclassloader which has loaded this referrer class the loaded resource bundle |
|
|