org.openqa.jetty.util
Class Loader

java.lang.Object
  extended by org.openqa.jetty.util.Loader

public class Loader
extends Object

ClassLoader Helper. This helper class allows classes to be loaded either from the Thread's ContextClassLoader, the classloader of the derived class or the system ClassLoader. Usage:

 public class MyClass {
     void myMethod() {
          ...
          Class c=Loader.loadClass(this.getClass(),classname);
          ...
     }
 

Version:
$Id: Loader.java,v 1.4 2004/11/05 07:09:33 gregwilkins Exp $
Author:
Greg Wilkins (gregw)

Constructor Summary
Loader()
           
 
Method Summary
static Class loadClass(Class loadClass, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader()
Method Detail

loadClass

public static Class loadClass(Class loadClass,
                              String name)
                       throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2012. All Rights Reserved.