org.nukesoft.botutil
Class AbsolutePathClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--org.nukesoft.botutil.AbsolutePathClassLoader

public class AbsolutePathClassLoader
extends ClassLoader

The AbsolutePathClassLoader is used to load classes based on their OS path, rather than their package path. This allows the flexability to create a plug-in based system where extension classes are dynamicaly loaded from a plug in dirrectory.

Usage:
AbsolutePathClassLoader apcl = new AbsolutePathClassLoader();
Object o = (Object)apcl.loadClass("path").newInstance();

Author:
Ryan Michela

Constructor Summary
AbsolutePathClassLoader()
           
AbsolutePathClassLoader(ClassLoader parent)
           
 
Method Summary
 Class findClass(String name)
          Finds the class in question.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsolutePathClassLoader

public AbsolutePathClassLoader(ClassLoader parent)

AbsolutePathClassLoader

public AbsolutePathClassLoader()
Method Detail

findClass

public Class findClass(String name)
                throws ClassNotFoundException
Finds the class in question.

Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException
See Also:
ClassLoader.findClass(java.lang.String)