|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.openejb.core.TempClassLoader
public class TempClassLoader
ClassLoader implementation that allows classes to be temporarily loaded and then thrown away. Useful for verifying and inspecting a class without first loading(and thus polluting) the parent ClassLoader.
This class is a proper subclass of URLClassLoader. This class will locally load any class except for those defined in the java.*, javax.* and sun.* packages and annotations all of which are loaded by withClass.forName(name, resolve, getClass().getClassLoader())
Nested Class Summary | |
---|---|
static class |
TempClassLoader.IsAnnotationVisitor
|
static class |
TempClassLoader.IsEnumVisitor
|
static class |
TempClassLoader.Skip
|
Constructor Summary | |
---|---|
TempClassLoader(java.lang.ClassLoader parent)
|
Method Summary | |
---|---|
java.lang.Class |
loadClass(java.lang.String name)
|
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
|
void |
skip(TempClassLoader.Skip s)
|
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempClassLoader(java.lang.ClassLoader parent)
Method Detail |
---|
public void skip(TempClassLoader.Skip s)
public java.lang.Class loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |