|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
A ClassLoader is used to load and link classes which would not be loaded by the system (bootstrap loader).
The only method you should override is loadClass(String name,boolean resolve) This method should do the following:
An easier class loader to extend is ewe.util.mClassLoader. This does most of this work already and you only need to override findClassBytes().
| Constructor Summary | |
protected |
ClassLoader()
|
| Method Summary | |
protected Class |
defineClass(String name,
byte[] classBytes,
int start,
int offset)
This tells the VM to convert a sequence of bytes representing a class definition into a Class Object. |
Class |
loadClass(String name)
This requests a class to be loaded and resolved. |
protected abstract Class |
loadClass(String name,
boolean resolve)
This should be overriden to actually locate the class bytes and define the class. |
protected void |
resolveClass(Class c)
This requests the VM to resolve the class after being defined. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Constructor Detail |
protected ClassLoader()
| Method Detail |
public final Class loadClass(String name)
throws ClassNotFoundException
ClassNotFoundException
protected abstract Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
ClassNotFoundExceptionprotected final void resolveClass(Class c)
protected final Class defineClass(String name,
byte[] classBytes,
int start,
int offset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||