public static enum AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm extends Enum<AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm> implements AgentBuilder.RedefinitionStrategy.Dispatcher
AgentBuilder.RedefinitionStrategy.Dispatcher.CreationAction, AgentBuilder.RedefinitionStrategy.Dispatcher.ForJava6CapableVm, AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isModifiableClass(Instrumentation instrumentation,
Class<?> type)
Checks if the supplied type is modifiable.
|
boolean |
isRetransformClassesSupported(Instrumentation instrumentation)
Checks if retransformation is supported for the supplied instrumentation instance.
|
void |
retransformClasses(Instrumentation instrumentation,
Class<?>[] type)
Retransforms the supplied classes.
|
static AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm INSTANCE
public static AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm[] values()
for (AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm c : AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static AgentBuilder.RedefinitionStrategy.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 isModifiableClass(Instrumentation instrumentation, Class<?> type)
isModifiableClass
in interface AgentBuilder.RedefinitionStrategy.Dispatcher
instrumentation
- The instrumentation instance available.type
- The type to check for modifiability.true
if the supplied type is modifiable.public boolean isRetransformClassesSupported(Instrumentation instrumentation)
isRetransformClassesSupported
in interface AgentBuilder.RedefinitionStrategy.Dispatcher
instrumentation
- The instrumentation instance available.true
if the supplied instance supports retransformation.public void retransformClasses(Instrumentation instrumentation, Class<?>[] type)
retransformClasses
in interface AgentBuilder.RedefinitionStrategy.Dispatcher
instrumentation
- The instrumentation instance to use for retransformation.type
- The types to retransform.Copyright © 2014–2020. All rights reserved.