@HashCodeAndEqualsPlugin.Enhance public static class ClassInjector.UsingInstrumentation.Dispatcher.ForJava6CapableVm extends java.lang.Object implements ClassInjector.UsingInstrumentation.Dispatcher
ClassInjector.UsingInstrumentation.Dispatcher.CreationAction, ClassInjector.UsingInstrumentation.Dispatcher.ForJava6CapableVm, ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
appendToBootstrapClassLoaderSearch
The
Instrumentation#appendToBootstrapClassLoaderSearch method. |
private java.lang.reflect.Method |
appendToSystemClassLoaderSearch
The
Instrumentation#appendToSystemClassLoaderSearch method. |
| Modifier | Constructor and Description |
|---|---|
protected |
ForJava6CapableVm(java.lang.reflect.Method appendToBootstrapClassLoaderSearch,
java.lang.reflect.Method appendToSystemClassLoaderSearch)
Creates a new dispatcher for a Java 6 compatible VM.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendToBootstrapClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation,
java.util.jar.JarFile jarFile)
Appends a jar file to the bootstrap class loader.
|
void |
appendToSystemClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation,
java.util.jar.JarFile jarFile)
Appends a jar file to the system class loader.
|
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
private final java.lang.reflect.Method appendToBootstrapClassLoaderSearch
Instrumentation#appendToBootstrapClassLoaderSearch method.private final java.lang.reflect.Method appendToSystemClassLoaderSearch
Instrumentation#appendToSystemClassLoaderSearch method.protected ForJava6CapableVm(java.lang.reflect.Method appendToBootstrapClassLoaderSearch,
java.lang.reflect.Method appendToSystemClassLoaderSearch)
appendToBootstrapClassLoaderSearch - The Instrumentation#appendToBootstrapClassLoaderSearch method.appendToSystemClassLoaderSearch - The Instrumentation#appendToSystemClassLoaderSearch method.public boolean isAlive()
true if this dispatcher is alive.isAlive in interface ClassInjector.UsingInstrumentation.Dispatchertrue if this dispatcher is alive.public void appendToBootstrapClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation,
java.util.jar.JarFile jarFile)
appendToBootstrapClassLoaderSearch in interface ClassInjector.UsingInstrumentation.Dispatcherinstrumentation - The instrumentation instance to interact with.jarFile - The jar file to append.public void appendToSystemClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation,
java.util.jar.JarFile jarFile)
appendToSystemClassLoaderSearch in interface ClassInjector.UsingInstrumentation.Dispatcherinstrumentation - The instrumentation instance to interact with.jarFile - The jar file to append.