lio.core
Class FileClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by lio.core.FileClassLoader

public class FileClassLoader
extends java.lang.ClassLoader

Loads class bytes from a class file if this class is not in classpath.


Constructor Summary
FileClassLoader(java.lang.String fPrefix)
          Attempts to load from a local file using the relative "filePrefix".
 
Method Summary
protected  java.lang.Class<?> findClass(java.lang.String className)
          This method override default implementation and try to find a class in classpath or in local system file (in that order)
 
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, 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

FileClassLoader

public FileClassLoader(java.lang.String fPrefix)
Attempts to load from a local file using the relative "filePrefix".

Parameters:
fPrefix - relative path.
Method Detail

findClass

protected java.lang.Class<?> findClass(java.lang.String className)
                                throws java.lang.ClassNotFoundException
This method override default implementation and try to find a class in classpath or in local system file (in that order)

Overrides:
findClass in class java.lang.ClassLoader
Parameters:
className - full qualified class name
Returns:
a Class object
Throws:
java.lang.ClassNotFoundException