Interface AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer

All Known Implementing Classes:
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.Resubmitter
Enclosing class:
AgentBuilder.RedefinitionStrategy

protected static interface AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
A resubmission enforcer determines if a non-loaded class should be scheduled for resubmission or be treated upon first load.
  • Method Details

    • isEnforced

      boolean isEnforced(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class<?> classBeingRedefined)
      Returns true if a class should be scheduled for resubmission.
      Parameters:
      typeName - The name of the instrumented class.
      classLoader - The class loader of the instrumented class or null if the boot loader.
      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.