@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.PatchMode.Handler.ForPatchWithSubstitution extends Object implements AgentBuilder.PatchMode.Handler
AgentBuilder.PatchMode.SUBSTITUTE.AgentBuilder.PatchMode.Handler.ForPatchWithGap, AgentBuilder.PatchMode.Handler.ForPatchWithOverlap, AgentBuilder.PatchMode.Handler.ForPatchWithSubstitution, AgentBuilder.PatchMode.Handler.NoOp| Modifier | Constructor and Description |
|---|---|
protected |
ForPatchWithSubstitution(ResettableClassFileTransformer.Substitutable classFileTransformer)
Creates a new handler for substitution.
|
| 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 ForPatchWithSubstitution(ResettableClassFileTransformer.Substitutable classFileTransformer)
classFileTransformer - The class file transformer to substitute.public void onBeforeRegistration(Instrumentation instrumentation)
onBeforeRegistration in interface AgentBuilder.PatchMode.Handlerinstrumentation - The instrumentation to use.public boolean onRegistration(ResettableClassFileTransformer classFileTransformer)
onRegistration in interface AgentBuilder.PatchMode.HandlerclassFileTransformer - 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.Handlerinstrumentation - The instrumentation to use.Copyright © 2014–2025. All rights reserved.