Class 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);
              ...
         }