com.adventnet.utilities.classloader
Class FileClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by com.adventnet.utilities.classloader.MultiClassLoader
          extended by com.adventnet.utilities.classloader.FileClassLoader

public class FileClassLoader
extends MultiClassLoader

Loads class bytes from a file.


Field Summary
 
Fields inherited from class com.adventnet.utilities.classloader.MultiClassLoader
monitorOn, sourceMonitorOn
 
Constructor Summary
FileClassLoader(java.lang.String filePrefix)
          Attempts to load from a local file using the relative "filePrefix", ie starting at the current directory.
 
Method Summary
 java.io.InputStream getResourceAsStream(java.lang.String st)
          Attempts to load the specified resource file.
protected  byte[] loadClassBytes(java.lang.String className)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.adventnet.utilities.classloader.MultiClassLoader
formatClassName, loadClass, loadClass, monitor, print, setClassNameReplacementChar
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, 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 filePrefix)
Attempts to load from a local file using the relative "filePrefix", ie starting at the current directory. For example

Parameters:
filePrefix - could be "webSiteClasses\\site1\\".
Method Detail

loadClassBytes

protected byte[] loadClassBytes(java.lang.String className)
Specified by:
loadClassBytes in class MultiClassLoader

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String st)
Attempts to load the specified resource file. Assumes that the resource is present in the "filePrefix",

Overrides:
getResourceAsStream in class java.lang.ClassLoader
Parameters:
st - could be "index.html".

main

public static void main(java.lang.String[] args)