com.adventnet.utilities.classloader
Class FileClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--com.adventnet.utilities.classloader.MultiClassLoader
              |
              +--com.adventnet.utilities.classloader.FileClassLoader

public class FileClassLoader
extends MultiClassLoader

Loads class bytes from a file.


Inner classes inherited from class java.lang.ClassLoader
java.lang.ClassLoader.NativeLibrary
 
Fields inherited from class com.adventnet.utilities.classloader.MultiClassLoader
monitorOn, sourceMonitorOn
 
Fields inherited from class java.lang.ClassLoader
nocerts
 
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
, addClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findNative, findResource, findResources, findSystemClass, getBootstrapClassPath, getCallerClassLoader, getGetClassLoaderPerm, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, isAncestor, loadLibrary, resolveClass, 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)
Overrides:
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)