Package net.bytebuddy.agent.builder
Interface AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
- All Known Implementing Classes:
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction
,AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction
,AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers
,AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
- Enclosing interface:
- AgentBuilder.RedefinitionListenable
public static interface AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
A matcher that determines if types should be resubmitted if it is not yet loaded and if an exception is raised.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A matcher for resubmission upon an error that matches both of the supplied delegate matchers.static class
A matcher for resubmission upon an error that matches either of the supplied delegate matchers.static class
A matcher for resubmission upon error that uses element matchers for each argument to determine a resubmission.static enum
A trivial matcher for resubmission upon an exception. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(Throwable throwable, String typeName, ClassLoader classLoader, JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.
-
Method Details
-
matches
boolean matches(Throwable throwable, String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module) Returnstrue
if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.- Parameters:
throwable
- The exception being raised.typeName
- The name of the instrumented type.classLoader
- The class loader of the instrumented type ornull
if the type is loaded by the bootstrap class loader.module
- The module of the instrumented type ornull
if the current VM does not support modules.- Returns:
true
if the type should be resubmitted.
-