Interface AgentBuilder.PatchMode.Handler

All Known Implementing Classes:
AgentBuilder.PatchMode.Handler.ForPatchWithGap, AgentBuilder.PatchMode.Handler.ForPatchWithOverlap, AgentBuilder.PatchMode.Handler.NoOp
Enclosing class:
AgentBuilder.PatchMode

protected static interface AgentBuilder.PatchMode.Handler
A handler to allow for callbacks prior and after registering a ClassFileTransformer.
  • Method Details

    • onBeforeRegistration

      void onBeforeRegistration(Instrumentation instrumentation)
      Invoked prior to registering a class file transformer.
      Parameters:
      instrumentation - The instrumentation to use.
    • onAfterRegistration

      void onAfterRegistration(Instrumentation instrumentation)
      Invoked right after registering a class file transformer.
      Parameters:
      instrumentation - The instrumentation to use.