@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers extends Object implements AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
Constructor and Description |
---|
ForElementMatchers(ElementMatcher<String> typeNameMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher,
ElementMatcher<? super JavaModule> moduleMatcher)
Creates a new matcher for immediate resubmission that is using element matchers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String typeName,
ClassLoader classLoader,
JavaModule module)
Returns
true if a type should be resubmitted if it is not yet loaded. |
public ForElementMatchers(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
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(String typeName, ClassLoader classLoader, JavaModule module)
true
if a type should be resubmitted if it is not yet loaded.matches
in interface AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
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–2021. All rights reserved.