jason.service.crusader
Class CrusaderLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--jason.service.crusader.CrusaderLoader

public class CrusaderLoader
extends java.lang.ClassLoader


Field Summary
protected  byte[] byteCode
           
protected  java.lang.Class servletClass
           
protected  java.io.File servletClassFile
           
 
Constructor Summary
CrusaderLoader()
           
 
Method Summary
 byte[] getClassData()
          This method is responsible to return the byte code read from the .class file in an array of bytes.
 java.lang.Class loadClass(java.lang.String className, boolean resolve)
          This method is being overriden to introduce a custom behavior - though it is strictly not required in Java2.
 void setServletClassFile(java.io.File servletClassFile)
          This method shall be used by CrusaderCore to pass the File object representing the .class file of the Servlet class to be loaded.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, 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
 

Field Detail

servletClass

protected java.lang.Class servletClass

servletClassFile

protected java.io.File servletClassFile

byteCode

protected byte[] byteCode
Constructor Detail

CrusaderLoader

public CrusaderLoader()
Method Detail

setServletClassFile

public void setServletClassFile(java.io.File servletClassFile)
This method shall be used by CrusaderCore to pass the File object representing the .class file of the Servlet class to be loaded.


loadClass

public java.lang.Class loadClass(java.lang.String className,
                                 boolean resolve)
This method is being overriden to introduce a custom behavior - though it is strictly not required in Java2. NOTE: THIS METHOD DOES NOT ATTEMPT TO INTRODUCE A SecurityManager WHICH MAY BE INTRODUCED IN AT A LATER TIME.

Overrides:
loadClass in class java.lang.ClassLoader

getClassData

public byte[] getClassData()
This method is responsible to return the byte code read from the .class file in an array of bytes. It returns null if there is some problem in reading the byte code.