@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.PatchMode.Handler.ForPatchWithGap extends Object implements AgentBuilder.PatchMode.Handler
AgentBuilder.PatchMode.GAP
.AgentBuilder.PatchMode.Handler.ForPatchWithGap, AgentBuilder.PatchMode.Handler.ForPatchWithOverlap, AgentBuilder.PatchMode.Handler.ForPatchWithSubstitution, AgentBuilder.PatchMode.Handler.NoOp
Modifier | Constructor and Description |
---|---|
protected |
ForPatchWithGap(ResettableClassFileTransformer classFileTransformer)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
protected ForPatchWithGap(ResettableClassFileTransformer classFileTransformer)
classFileTransformer
- The class file transformer to deregister.public void onBeforeRegistration(Instrumentation instrumentation)
onBeforeRegistration
in interface AgentBuilder.PatchMode.Handler
instrumentation
- The instrumentation to use.public boolean onRegistration(ResettableClassFileTransformer classFileTransformer)
onRegistration
in interface AgentBuilder.PatchMode.Handler
classFileTransformer
- The class file transformer to register.true
if a regular registration should be applied to the transformer.public void onAfterRegistration(Instrumentation instrumentation)
onAfterRegistration
in interface AgentBuilder.PatchMode.Handler
instrumentation
- The instrumentation to use.Copyright © 2014–2024. All rights reserved.