public static enum AgentBuilder.TypeStrategy.Default extends Enum<AgentBuilder.TypeStrategy.Default> implements AgentBuilder.TypeStrategy
AgentBuilder.TypeStrategy.Default, AgentBuilder.TypeStrategy.ForBuildEntryPoint| Enum Constant and Description |
|---|
REBASE
A definition handler that performs a rebasing for all types.
|
REDEFINE
A definition handler that performs a redefinition for all types.
|
REDEFINE_DECLARED_ONLY
A definition handler that performs a redefinition for all types and ignores all methods that were not declared by the instrumented type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static AgentBuilder.TypeStrategy.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.TypeStrategy.Default[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfbuilderpublic static final AgentBuilder.TypeStrategy.Default REBASE
public static final AgentBuilder.TypeStrategy.Default REDEFINE
A definition handler that performs a redefinition for all types.
Note that the default agent builder is configured to apply a self initialization where a static class initializer
is added to the redefined class. This can be disabled by for example using a AgentBuilder.InitializationStrategy.Minimal or
AgentBuilder.InitializationStrategy.NoOp. Also, consider the constraints implied by ByteBuddy.redefine(TypeDescription, ClassFileLocator).
For prohibiting any changes on a class file, use AgentBuilder.disableClassFormatChanges()
public static final AgentBuilder.TypeStrategy.Default REDEFINE_DECLARED_ONLY
A definition handler that performs a redefinition for all types and ignores all methods that were not declared by the instrumented type.
Note that the default agent builder is configured to apply a self initialization where a static class initializer
is added to the redefined class. This can be disabled by for example using a AgentBuilder.InitializationStrategy.Minimal or
AgentBuilder.InitializationStrategy.NoOp. Also, consider the constraints implied by ByteBuddy.redefine(TypeDescription, ClassFileLocator).
For prohibiting any changes on a class file, use AgentBuilder.disableClassFormatChanges()
public static AgentBuilder.TypeStrategy.Default[] values()
for (AgentBuilder.TypeStrategy.Default c : AgentBuilder.TypeStrategy.Default.values()) System.out.println(c);
public static AgentBuilder.TypeStrategy.Default 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 String toString()
toString in class Enum<AgentBuilder.TypeStrategy.Default>Copyright © 2014–2016. All rights reserved.