Package net.bytebuddy.agent.builder
Class AgentBuilder.PatchMode.Handler.ForPatchWithGap
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.PatchMode.Handler.ForPatchWithGap
- All Implemented Interfaces:
AgentBuilder.PatchMode.Handler
- Enclosing interface:
AgentBuilder.PatchMode.Handler
@Enhance
public static class AgentBuilder.PatchMode.Handler.ForPatchWithGap
extends Object
implements AgentBuilder.PatchMode.Handler
A handler for patching by
AgentBuilder.PatchMode.GAP
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.PatchMode.Handler
AgentBuilder.PatchMode.Handler.ForPatchWithGap, AgentBuilder.PatchMode.Handler.ForPatchWithOverlap, AgentBuilder.PatchMode.Handler.ForPatchWithSubstitution, AgentBuilder.PatchMode.Handler.NoOp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResettableClassFileTransformer
The class file transformer to deregister. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForPatchWithGap
(ResettableClassFileTransformer classFileTransformer) Creates a new handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterRegistration
(Instrumentation instrumentation) Invoked right after registering a class file transformer.void
onBeforeRegistration
(Instrumentation instrumentation) Invoked prior to registering a class file transformer.boolean
onRegistration
(ResettableClassFileTransformer classFileTransformer) Invoked upon registering a class file transformer.
-
Field Details
-
classFileTransformer
The class file transformer to deregister.
-
-
Constructor Details
-
ForPatchWithGap
Creates a new handler.- Parameters:
classFileTransformer
- The class file transformer to deregister.
-
-
Method Details
-
onBeforeRegistration
Invoked prior to registering a class file transformer.- Specified by:
onBeforeRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
instrumentation
- The instrumentation to use.
-
onRegistration
Invoked upon registering a class file transformer.- Specified by:
onRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
classFileTransformer
- The class file transformer to register.- Returns:
true
if a regular registration should be applied to the transformer.
-
onAfterRegistration
Invoked right after registering a class file transformer.- Specified by:
onAfterRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
instrumentation
- The instrumentation to use.
-