public class InstrumentationClassFinder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InstrumentationClassFinder.PseudoClass |
static class |
InstrumentationClassFinder.PseudoMethod |
static interface |
InstrumentationClassFinder.Resource |
Constructor and Description |
---|
InstrumentationClassFinder(java.net.URL[] cp) |
InstrumentationClassFinder(java.net.URL[] platformUrls,
java.net.URL[] classpathUrls) |
Modifier and Type | Method and Description |
---|---|
void |
cleanCachedData(java.lang.String className) |
static java.net.URL |
createJDKPlatformUrl(java.lang.String jdkHomePath) |
java.io.InputStream |
getClassBytesAsStream(java.lang.String className) |
java.lang.ClassLoader |
getLoader() |
java.io.InputStream |
getResourceAsStream(java.lang.String resourceName) |
byte[] |
loadBytes(java.io.InputStream stream) |
InstrumentationClassFinder.PseudoClass |
loadClass(java.lang.String name) |
protected java.io.InputStream |
lookupClassAfterClasspath(java.lang.String internalClassName) |
protected java.io.InputStream |
lookupClassBeforeClasspath(java.lang.String internalClassName) |
void |
releaseResources() |
public InstrumentationClassFinder(java.net.URL[] cp)
public InstrumentationClassFinder(java.net.URL[] platformUrls, java.net.URL[] classpathUrls)
public static java.net.URL createJDKPlatformUrl(java.lang.String jdkHomePath) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.lang.ClassLoader getLoader()
public void releaseResources()
public InstrumentationClassFinder.PseudoClass loadClass(java.lang.String name) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void cleanCachedData(java.lang.String className)
public java.io.InputStream getClassBytesAsStream(java.lang.String className) throws java.io.IOException
java.io.IOException
public java.io.InputStream getResourceAsStream(java.lang.String resourceName) throws java.io.IOException
java.io.IOException
protected java.io.InputStream lookupClassBeforeClasspath(java.lang.String internalClassName)
protected java.io.InputStream lookupClassAfterClasspath(java.lang.String internalClassName)
public byte[] loadBytes(java.io.InputStream stream)