Enum Class AgentBuilder.InitializationStrategy.NoOp

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

public static enum AgentBuilder.InitializationStrategy.NoOp extends Enum<AgentBuilder.InitializationStrategy.NoOp> implements AgentBuilder.InitializationStrategy, AgentBuilder.InitializationStrategy.Dispatcher
A non-initializing initialization strategy.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

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

      public static AgentBuilder.InitializationStrategy.NoOp valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • dispatcher

      Creates a new dispatcher for injecting this initialization strategy during a transformation process.
      Specified by:
      dispatcher in interface AgentBuilder.InitializationStrategy
      Returns:
      The dispatcher to be used.
    • apply

      public DynamicType.Builder<?> apply(DynamicType.Builder<?> builder)
      Transforms the instrumented type to implement an appropriate initialization strategy.
      Specified by:
      apply in interface AgentBuilder.InitializationStrategy.Dispatcher
      Parameters:
      builder - The builder which should implement the initialization strategy.
      Returns:
      The given builder with the initialization strategy applied.
    • register

      public void register(DynamicType dynamicType, ClassLoader classLoader, ProtectionDomain protectionDomain, AgentBuilder.InjectionStrategy injectionStrategy)
      Registers a dynamic type for initialization and/or begins the initialization process.
      Specified by:
      register in interface AgentBuilder.InitializationStrategy.Dispatcher
      Parameters:
      dynamicType - The dynamic type that is created.
      classLoader - The class loader of the dynamic type which can be null to represent the bootstrap class loader.
      protectionDomain - The instrumented type's protection domain or null if no protection domain is available.
      injectionStrategy - The injection strategy to use.