|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
kiwi.util.ReplacementClassLoader
A custom class loader that can be used to selectively replace core classes.
Nested Class Summary |
Nested classes inherited from class java.lang.ClassLoader |
|
Field Summary | |
private java.util.Hashtable |
classes
|
private java.lang.Class |
clazz
|
static java.lang.String |
codebase
The path (relative to the anchor) relative to which classes will be loaded. |
private java.util.Hashtable |
replacements
|
Fields inherited from class java.lang.ClassLoader |
|
Constructor Summary | |
ReplacementClassLoader(java.lang.String[] replacementList,
java.lang.Class clazz)
Construct a new ReplacementClassLoader . |
Method Summary | |
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Load a class. |
private java.lang.String |
translateName(java.lang.String name)
|
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 |
public static final java.lang.String codebase
private java.util.Hashtable replacements
private java.util.Hashtable classes
private java.lang.Class clazz
Constructor Detail |
public ReplacementClassLoader(java.lang.String[] replacementList, java.lang.Class clazz)
ReplacementClassLoader
. The class loader
will become active once a class is loaded explicitly via its
loadClass()
method. All classes loaded by that class will,
in turn, be loaded by this class loader.
replacementList
- A list of full-qualified names of classes that
will be loaded from a local source.clazz
- The class relative to which the patches resource
directory is located. This resource directory contains the class
hierarchy of replacement classes.Method Detail |
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
name
- The fully-qualified name of the class to load.resolve
- A flag specifying whether the class should be resolved.
java.lang.ClassNotFoundException
- If the named class could not
be found.private java.lang.String translateName(java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |