@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers extends Object implements AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial| Constructor and Description |
|---|
ForElementMatchers(ElementMatcher<? super Throwable> exceptionMatcher,
ElementMatcher<String> typeNameMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Creates a new matcher for resubmission upon an exception that is using element matchers.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Throwable throwable,
String typeName,
ClassLoader classLoader,
JavaModule module)
Returns
true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation. |
public ForElementMatchers(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
exceptionMatcher - The matcher to use for the exception that was caused.typeNameMatcher - The matcher to use for the instrumented type's name.classLoaderMatcher - The matcher to use for the instrumented type's class loader.moduleMatcher - The matcher to use for the instrumented type's module.public boolean matches(Throwable throwable, String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module)
true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.matches in interface AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcherthrowable - 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.true if the type should be resubmitted.Copyright © 2014–2025. All rights reserved.