|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader com.ph.pr.apps.jaspcleaner.JCClassLoader
class JCClassLoader
For use by JaspCleaner in loading classes that are import
ed into the JSP page. For more information, see findClass(String)
.
Field Summary | |
---|---|
private java.util.Set |
imports
Imported packages. |
private java.util.Map |
loaded
Map of class name to Class objects for those already loaded. |
Constructor Summary | |
---|---|
JCClassLoader(java.lang.Object o)
Constructor. |
Method Summary | |
---|---|
void |
addImport(java.lang.String pkg)
Add the package to the list of packages where the lookup will proceed. |
protected java.lang.Class |
findClass(java.lang.String className)
A ClassLoader.findClass(java.lang.String) , such that:
If a qualified name is passed, it is passed to the
ClassLoader.findClass(java.lang.String) . |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, 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 |
---|
private final java.util.Set imports
private final java.util.Map loaded
Constructor Detail |
---|
public JCClassLoader(java.lang.Object o)
addImport(String)
ed:
o
- Object whose ClassLoader is to be used as parent.Method Detail |
---|
public void addImport(java.lang.String pkg)
pkg
- Package identifier to add.protected java.lang.Class findClass(java.lang.String className) throws java.lang.ClassNotFoundException
ClassLoader.findClass(java.lang.String)
, such that:
ClassLoader.findClass(java.lang.String)
.
list of imported packages
, and load.
Integer.TYPE
).
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
ClassLoader.findClass(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |