public class InstrumentingClassLoader
extends java.net.URLClassLoader
NOTE: Should the jar files found from jre/lib/ext (System.getProperty("java.ext.dirs")) also be added to search path?
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
classes |
protected InstrumentationContext |
ctx |
| Modifier | Constructor and Description |
|---|---|
protected |
InstrumentingClassLoader(InstrumentationContext ctx,
java.net.URL[] urls,
java.lang.ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
bootstrap(java.lang.String className) |
static java.lang.ClassLoader |
createClassLoader()
Creates a new InstrumentingClassloader.
|
static java.lang.ClassLoader |
createClassLoader(InstrumentationContext ctx)
Creates a new InstrumentingClassloader.
|
static java.lang.ClassLoader |
createClassLoader(InstrumentationContext ctx,
java.lang.ClassLoader parent)
Creates a new InstrumentingClassloader.
|
static java.lang.ClassLoader |
createClassLoader(InstrumentationContextProvider icp)
Creates a new InstrumentingClassloader.
|
static java.lang.ClassLoader |
createClassLoader(InstrumentationContextProvider icp,
java.lang.ClassLoader parent)
Creates a new InstrumentingClassloader.
|
protected java.security.CodeSource |
createCodeSource(java.net.URL location)
Form a CodeSource for loaded class.
|
java.lang.Class |
findClass(java.lang.String name) |
protected java.lang.Class |
loadClass(java.lang.String className,
boolean resolve) |
void |
setContext(InstrumentationContext ctx)
Set the context for the ClassLoader.
|
addURL, close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstanceclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprotected java.util.Map classes
protected InstrumentationContext ctx
protected InstrumentingClassLoader(InstrumentationContext ctx, java.net.URL[] urls, java.lang.ClassLoader parent)
public java.lang.Class bootstrap(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static java.lang.ClassLoader createClassLoader()
public static java.lang.ClassLoader createClassLoader(InstrumentationContext ctx)
public static java.lang.ClassLoader createClassLoader(InstrumentationContext ctx, java.lang.ClassLoader parent)
public static java.lang.ClassLoader createClassLoader(InstrumentationContextProvider icp) throws JiapiException
JiapiExceptionpublic static java.lang.ClassLoader createClassLoader(InstrumentationContextProvider icp, java.lang.ClassLoader parent) throws JiapiException
JiapiExceptionprotected java.security.CodeSource createCodeSource(java.net.URL location)
location - a location where the class was loaded frompublic java.lang.Class findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
findClass in class java.net.URLClassLoaderjava.lang.ClassNotFoundExceptionprotected java.lang.Class loadClass(java.lang.String className,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundExceptionpublic void setContext(InstrumentationContext ctx)
ctx - an InstrumentationContext to be usedCopyright © 2001. Documenation generated January 12 2013.