Class AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction
All Implemented Interfaces:
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
Enclosing interface:
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher

@Enhance public static class AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction extends Object implements AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
A matcher for resubmission upon an error that matches both of the supplied delegate matchers.
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(Throwable throwable, String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module)
      Returns true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.
      Specified by:
      matches in interface AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
      Parameters:
      throwable - The exception being raised.
      typeName - The name of the instrumented type.
      classLoader - The class loader of the instrumented type or null if the type is loaded by the bootstrap class loader.
      module - The module of the instrumented type or null if the current VM does not support modules.
      Returns:
      true if the type should be resubmitted.