public static enum AgentBuilder.Default.Dispatcher.ForLegacyVm extends java.lang.Enum<AgentBuilder.Default.Dispatcher.ForLegacyVm> implements AgentBuilder.Default.Dispatcher
AgentBuilder.Default.Dispatcher.CreationAction, AgentBuilder.Default.Dispatcher.ForJava6CapableVm, AgentBuilder.Default.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)
Adds a class file transformer to an instrumentation instance.
|
boolean |
isNativeMethodPrefixSupported(java.lang.instrument.Instrumentation instrumentation)
Returns
true if the supplied instrumentation instance supports setting native method prefixes. |
void |
setNativeMethodPrefix(java.lang.instrument.Instrumentation instrumentation,
java.lang.instrument.ClassFileTransformer classFileTransformer,
java.lang.String prefix)
Sets a native method prefix for the supplied class file transformer.
|
static AgentBuilder.Default.Dispatcher.ForLegacyVm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.Default.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.Default.Dispatcher.ForLegacyVm INSTANCE
public static AgentBuilder.Default.Dispatcher.ForLegacyVm[] values()
for (AgentBuilder.Default.Dispatcher.ForLegacyVm c : AgentBuilder.Default.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static AgentBuilder.Default.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 isNativeMethodPrefixSupported(java.lang.instrument.Instrumentation instrumentation)
true if the supplied instrumentation instance supports setting native method prefixes.isNativeMethodPrefixSupported in interface AgentBuilder.Default.Dispatcherinstrumentation - The instrumentation instance to use.true if the supplied instrumentation instance supports native method prefixes.public void setNativeMethodPrefix(java.lang.instrument.Instrumentation instrumentation,
java.lang.instrument.ClassFileTransformer classFileTransformer,
java.lang.String prefix)
setNativeMethodPrefix in interface AgentBuilder.Default.Dispatcherinstrumentation - The instrumentation instance to use.classFileTransformer - The class file transformer for which the prefix is set.prefix - The prefix to set.public void addTransformer(java.lang.instrument.Instrumentation instrumentation,
java.lang.instrument.ClassFileTransformer classFileTransformer,
boolean canRetransform)
addTransformer in interface AgentBuilder.Default.Dispatcherinstrumentation - The instrumentation instance to use for registration.classFileTransformer - The class file transformer to register.canRetransform - true if the class file transformer is capable of retransformation.