Enum AgentBuilder.PatchMode.Handler.NoOp

java.lang.Object
java.lang.Enum<AgentBuilder.PatchMode.Handler.NoOp>
net.bytebuddy.agent.builder.AgentBuilder.PatchMode.Handler.NoOp
All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.PatchMode.Handler.NoOp>, java.lang.constant.Constable, AgentBuilder.PatchMode.Handler
Enclosing interface:
AgentBuilder.PatchMode.Handler

public static enum AgentBuilder.PatchMode.Handler.NoOp extends Enum<AgentBuilder.PatchMode.Handler.NoOp> implements AgentBuilder.PatchMode.Handler
A non-operational handler.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static AgentBuilder.PatchMode.Handler.NoOp[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AgentBuilder.PatchMode.Handler.NoOp valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • onBeforeRegistration

      public void onBeforeRegistration(Instrumentation instrumentation)
      Invoked prior to registering a class file transformer.
      Specified by:
      onBeforeRegistration in interface AgentBuilder.PatchMode.Handler
      Parameters:
      instrumentation - The instrumentation to use.
    • onRegistration

      public boolean onRegistration(ResettableClassFileTransformer classFileTransformer)
      Invoked upon registering a class file transformer.
      Specified by:
      onRegistration in interface AgentBuilder.PatchMode.Handler
      Parameters:
      classFileTransformer - The class file transformer to register.
      Returns:
      true if a regular registration should be applied to the transformer.
    • onAfterRegistration

      public void onAfterRegistration(Instrumentation instrumentation)
      Invoked right after registering a class file transformer.
      Specified by:
      onAfterRegistration in interface AgentBuilder.PatchMode.Handler
      Parameters:
      instrumentation - The instrumentation to use.