rolec
Class CustomClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by rolec.CustomClassLoader

public class CustomClassLoader
extends java.lang.ClassLoader

This class loads classes from the file "ai.conf"


Constructor Summary
CustomClassLoader()
          Constructs a new CustomClassLoader
 
Method Summary
 java.lang.Class findClass(java.lang.String className)
          Finds a specific class
 java.lang.Class loadClass(java.lang.String className)
          Loads a specific class
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, 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

CustomClassLoader

public CustomClassLoader()
Constructs a new CustomClassLoader

Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String className)
                          throws java.lang.ClassNotFoundException
Loads a specific class

Overrides:
loadClass in class java.lang.ClassLoader
Parameters:
className - name of the class
Returns:
the class with the specified name, null if no matching class is found
Throws:
java.lang.ClassNotFoundException

findClass

public java.lang.Class findClass(java.lang.String className)
Finds a specific class

Overrides:
findClass in class java.lang.ClassLoader
Parameters:
className - name of the class
Returns:
the class with the specified name, null if no matching class is found