public static enum ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm extends java.lang.Enum<ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm> implements ClassInjector.UsingInstrumentation.Dispatcher
ClassInjector.UsingInstrumentation.Dispatcher.CreationAction, ClassInjector.UsingInstrumentation.Dispatcher.ForJava6CapableVm, ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
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. |
static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm INSTANCE
public static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm[] values()
for (ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm c : ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static ClassInjector.UsingInstrumentation.Dispatcher.ForLegacyVm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isAlive()
true
if this dispatcher is alive.isAlive
in interface ClassInjector.UsingInstrumentation.Dispatcher
true
if this dispatcher is alive.public void appendToBootstrapClassLoaderSearch(java.lang.instrument.Instrumentation instrumentation, java.util.jar.JarFile jarFile)
appendToBootstrapClassLoaderSearch
in interface ClassInjector.UsingInstrumentation.Dispatcher
instrumentation
- 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.Dispatcher
instrumentation
- The instrumentation instance to interact with.jarFile
- The jar file to append.