public class mClassLoader extends ClassLoader implements ClassInfoLoader
Modifier and Type | Field and Description |
---|---|
protected static Hashtable |
cache |
Vector |
classInfoLoaders
This is a set of ClassInfoLoader objects.
|
static mClassLoader |
defaultLoader |
Constructor and Description |
---|
mClassLoader() |
Modifier and Type | Method and Description |
---|---|
ClassInfo |
doLoadClass(String name)
This does the custom load, without looking for system classes or
already loaded classes.
|
Class |
getClass(String name)
This calls the loadClass() method to get and resolve the class.
|
boolean |
getClassBytes(ClassInfo ci)
This is the only thing you MAY need to override.
|
ClassInfo |
getClassInfo(Class cl)
This gets the ClassInfo object for a class which was just loaded.
|
ClassInfo |
getClassInfo(String name) |
static Class |
getForName(String name) |
Object |
getObject(String className)
This gets an instance of a class.
|
static Class |
getPrimitiveClass(String name) |
protected Class |
loadClass(String name,
boolean resolve)
This should be overriden to actually locate the class bytes and define the class.
|
ClassInfo |
loadClassInfo(String name,
boolean resolve) |
protected boolean |
tryDefineClass(ClassInfo ci) |
defineClass, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass
protected static Hashtable cache
public static mClassLoader defaultLoader
public Vector classInfoLoaders
public boolean getClassBytes(ClassInfo ci)
getClassBytes
in interface ClassInfoLoader
protected boolean tryDefineClass(ClassInfo ci)
public final ClassInfo doLoadClass(String name)
protected final Class loadClass(String name, boolean resolve)
ClassLoader
loadClass
in class ClassLoader
public Class getClass(String name)
public Object getObject(String className)