|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
net.firstpartners.rp.mid.loader.RPClassLoader
public class RPClassLoader
| Field Summary | |
|---|---|
private java.util.Hashtable |
m_classCache
|
private java.util.Hashtable |
m_dataSet
|
private java.lang.ClassLoader |
m_parent
|
| Constructor Summary | |
|---|---|
RPClassLoader()
Constructor of the class loader |
|
RPClassLoader(java.lang.ClassLoader parent)
Creates a new instance of the class loader. |
|
| Method Summary | |
|---|---|
void |
addClassFile(java.io.File file)
Load the data from the specified class |
void |
cleanup()
This method resets this ClassLoader's state. |
boolean |
existsClass(java.lang.String classname)
Test if the specify class is in tjava.lang.ClassLoader's defineClass method is final, so the its subclasses cannot override this method. |
protected void |
finalize()
This method resets this ClassLoader's state and resets the references for garbage collection. |
java.io.InputStream |
getResourceAsStream(java.lang.String resourceName)
this method return a Inputstream of Recourse |
java.lang.Class |
loadAppClass(java.lang.String className)
Description of the Method |
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Loading the class |
private byte[] |
loadClassData(java.lang.String classname)
java.lang.ClassLoader's defineClass method is final, so the its subclasses cannot override this method. |
static byte[] |
readFully(java.io.InputStream is)
Read the stream and return the bytes readed from this stream |
protected void |
setParent(java.lang.ClassLoader parent)
Sets the parent/delegate class loader. |
| 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, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.ClassLoader m_parent
private java.util.Hashtable m_classCache
private java.util.Hashtable m_dataSet
| Constructor Detail |
|---|
public RPClassLoader()
public RPClassLoader(java.lang.ClassLoader parent)
parent - Description of Parameter| Method Detail |
|---|
public static byte[] readFully(java.io.InputStream is)
throws java.io.IOException
is - Description of Parameter
java.io.IOException - Description of Exceptionpublic final boolean existsClass(java.lang.String classname)
classname - Description of Parameter
public final java.lang.Class loadAppClass(java.lang.String className)
throws java.lang.ClassNotFoundException
className - Description of Parameter
java.lang.ClassNotFoundException - Description of Exceptionpublic final void addClassFile(java.io.File file)
data - The feature to be added to the Data attributepublic final void cleanup()
protected final void setParent(java.lang.ClassLoader parent)
parent - The new parent value
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - Description of Exception
protected java.lang.Class loadClass(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoadername - The class to be loadresolve - True/false if the class want to be
resolved or not
java.lang.ClassNotFoundException - Description of Exceptionprivate byte[] loadClassData(java.lang.String classname)
classname - Description of Parameter
public java.io.InputStream getResourceAsStream(java.lang.String resourceName)
getResourceAsStream in class java.lang.ClassLoaderString - resourceName recouse name with path
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||