public static enum ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm extends 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(Instrumentation instrumentation,
ClassFileTransformer classFileTransformer,
boolean canRetransform)
Registers a transformer.
|
boolean |
isRetransformClassesSupported(Instrumentation instrumentation)
Invokes the
Instrumentation#isRetransformClassesSupported method. |
void |
retransformClasses(Instrumentation instrumentation,
Class<?>[] type)
Retransforms the supplied classes.
|
static ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isRetransformClassesSupported(Instrumentation instrumentation)
Instrumentation#isRetransformClassesSupported
method.isRetransformClassesSupported
in interface ClassFileLocator.AgentBased.Dispatcher
instrumentation
- The instrumentation instance to invoke the method on.true
if the supplied instrumentation instance supports retransformation.public void addTransformer(Instrumentation instrumentation, ClassFileTransformer classFileTransformer, boolean canRetransform)
addTransformer
in interface ClassFileLocator.AgentBased.Dispatcher
instrumentation
- 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(Instrumentation instrumentation, Class<?>[] type)
retransformClasses
in interface ClassFileLocator.AgentBased.Dispatcher
instrumentation
- The instrumentation instance to invoke the method on.type
- The types to retransform.Copyright © 2014–2020. All rights reserved.