public static enum AgentBuilder.PatchMode extends Enum<AgentBuilder.PatchMode>
ResettableClassFileTransformer
resolves the transformer exchange.Modifier and Type | Class and Description |
---|---|
protected static interface |
AgentBuilder.PatchMode.Handler
A handler to allow for callbacks prior and after registering a
ClassFileTransformer . |
Enum Constant and Description |
---|
GAP
Allows for a short period where neither class file transformer is registered.
|
OVERLAP
Allows for a short period where both class file transformer are registered.
|
SUBSTITUTE
Requires a
ResettableClassFileTransformer.Substitutable class file
transformer which can exchange the actual class file transformer without any overlaps or changes in order. |
Modifier and Type | Method and Description |
---|---|
protected static AgentBuilder.PatchMode |
of(ResettableClassFileTransformer classFileTransformer)
Resolves a default patch mode for a given
ResettableClassFileTransformer . |
protected abstract AgentBuilder.PatchMode.Handler |
toHandler(ResettableClassFileTransformer classFileTransformer)
Resolves this strategy to a handler.
|
static AgentBuilder.PatchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.PatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.PatchMode GAP
public static final AgentBuilder.PatchMode OVERLAP
public static final AgentBuilder.PatchMode SUBSTITUTE
ResettableClassFileTransformer.Substitutable
class file
transformer which can exchange the actual class file transformer without any overlaps or changes in order.
Normally, this can be achieved easily by adding AgentBuilder.TransformerDecorator.ForSubstitution
as a last
decorator prior to installation.public static AgentBuilder.PatchMode[] values()
for (AgentBuilder.PatchMode c : AgentBuilder.PatchMode.values()) System.out.println(c);
public static AgentBuilder.PatchMode 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 nullprotected static AgentBuilder.PatchMode of(ResettableClassFileTransformer classFileTransformer)
ResettableClassFileTransformer
.classFileTransformer
- The class file transformer to consider.protected abstract AgentBuilder.PatchMode.Handler toHandler(ResettableClassFileTransformer classFileTransformer)
classFileTransformer
- The class file transformer to deregister.Copyright © 2014–2023. All rights reserved.