public static enum ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm extends java.lang.Enum<ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm> implements ClassFileLocator.AgentBased.Dispatcher
ClassFileLocator.AgentBased.Dispatcher.CreationAction, ClassFileLocator.AgentBased.Dispatcher.ForJava6CapableVm, ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(java.lang.instrument.Instrumentation instrumentation,
java.lang.instrument.ClassFileTransformer classFileTransformer,
boolean canRetransform)
Registers a transformer.
|
boolean |
isRetransformClassesSupported(java.lang.instrument.Instrumentation instrumentation)
Invokes the
Instrumentation#isRetransformClassesSupported method. |
void |
retransformClasses(java.lang.instrument.Instrumentation instrumentation,
java.lang.Class<?>[] type)
Retransforms the supplied classes.
|
static ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm INSTANCE
public static ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm[] values()
for (ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm c : ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static ClassFileLocator.AgentBased.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 isRetransformClassesSupported(java.lang.instrument.Instrumentation instrumentation)
Instrumentation#isRetransformClassesSupported method.isRetransformClassesSupported in interface ClassFileLocator.AgentBased.Dispatcherinstrumentation - The instrumentation instance to invoke the method on.true if the supplied instrumentation instance supports retransformation.public void addTransformer(java.lang.instrument.Instrumentation instrumentation,
java.lang.instrument.ClassFileTransformer classFileTransformer,
boolean canRetransform)
addTransformer in interface ClassFileLocator.AgentBased.Dispatcherinstrumentation - The instrumentation instance to invoke the method on.classFileTransformer - The class file transformer to register.canRetransform - true if the class file transformer should be invoked upon a retransformation.public void retransformClasses(java.lang.instrument.Instrumentation instrumentation,
java.lang.Class<?>[] type)
retransformClasses in interface ClassFileLocator.AgentBased.Dispatcherinstrumentation - The instrumentation instance to invoke the method on.type - The types to retransform.