protected static interface AgentBuilder.PatchMode.Handler
ClassFileTransformer.| Modifier and Type | Interface and Description |
|---|---|
static class |
AgentBuilder.PatchMode.Handler.ForPatchWithGap
A handler for patching by
AgentBuilder.PatchMode.GAP. |
static class |
AgentBuilder.PatchMode.Handler.ForPatchWithOverlap
A handler for patching by
AgentBuilder.PatchMode.OVERLAP. |
static class |
AgentBuilder.PatchMode.Handler.ForPatchWithSubstitution
A handler for patching by
AgentBuilder.PatchMode.SUBSTITUTE. |
static class |
AgentBuilder.PatchMode.Handler.NoOp
A non-operational 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.
|
void onBeforeRegistration(Instrumentation instrumentation)
instrumentation - The instrumentation to use.boolean onRegistration(ResettableClassFileTransformer classFileTransformer)
classFileTransformer - The class file transformer to register.true if a regular registration should be applied to the transformer.void onAfterRegistration(Instrumentation instrumentation)
instrumentation - The instrumentation to use.Copyright © 2014–2025. All rights reserved.