Enum Class AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled

java.lang.Object
java.lang.Enum<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled>, Constable, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
Enclosing interface:
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer

public static enum AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled extends Enum<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled> implements AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
A resubmission enforcer that does not consider non-loaded classes.
  • Enum Constant Details

  • Constructor Details

    • Disabled

      private Disabled()
  • Method Details

    • 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

      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
    • isEnforced

      public boolean isEnforced(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined)
      Returns true if a class should be scheduled for resubmission.
      Specified by:
      isEnforced in interface AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
      Parameters:
      typeName - The name of the instrumented class.
      classLoader - The class loader of the instrumented class.
      module - The module of the instrumented class or null if the module system is not supported.
      classBeingRedefined - The class to be redefined or null if the current type is loaded for the first time.
      Returns:
      true if the class should be scheduled for resubmission.