Package net.bytebuddy.agent.builder
Class AgentBuilder.PatchMode.Handler.ForPatchWithOverlap
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.PatchMode.Handler.ForPatchWithOverlap
- All Implemented Interfaces:
AgentBuilder.PatchMode.Handler
- Enclosing interface:
AgentBuilder.PatchMode.Handler
@Enhance
public static class AgentBuilder.PatchMode.Handler.ForPatchWithOverlap
extends Object
implements AgentBuilder.PatchMode.Handler
A handler for patching by
AgentBuilder.PatchMode.OVERLAP.-
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.NoOp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResettableClassFileTransformerThe class file transformer to deregister. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForPatchWithOverlap(ResettableClassFileTransformer classFileTransformer) Creates a new handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidonAfterRegistration(Instrumentation instrumentation) Invoked right after registering a class file transformer.voidonBeforeRegistration(Instrumentation instrumentation) Invoked prior to registering a class file transformer.
-
Field Details
-
classFileTransformer
The class file transformer to deregister.
-
-
Constructor Details
-
ForPatchWithOverlap
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:
onBeforeRegistrationin interfaceAgentBuilder.PatchMode.Handler- Parameters:
instrumentation- The instrumentation to use.
-
onAfterRegistration
Invoked right after registering a class file transformer.- Specified by:
onAfterRegistrationin interfaceAgentBuilder.PatchMode.Handler- Parameters:
instrumentation- The instrumentation to use.
-