Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction
- All Implemented Interfaces:
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
- Enclosing interface:
- AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
@Enhance
public static class AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction
extends Object
implements AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
A matcher for resubmission upon an error that matches either of the supplied delegate matchers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe represented matchers in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionDisjunction
(List<? extends AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher> matchers) Creates a new conjunction for a resubmission matcher upon an error.Creates a new disjunction for a resubmission matcher upon an error. -
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.
-
Field Details
-
matchers
The represented matchers in their application order.
-
-
Constructor Details
-
Disjunction
Creates a new disjunction for a resubmission matcher upon an error.- Parameters:
matcher
- The represented matchers in their application order.
-
Disjunction
public Disjunction(List<? extends AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher> matchers) Creates a new conjunction for a resubmission matcher upon an error.- Parameters:
matchers
- The represented matchers in their application order.
-
-
Method Details
-
matches
public 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.- Specified by:
matches
in interfaceAgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
- 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.
-