public static interface AgentBuilder.RawMatcher
AgentBuilder.Transformer
should be applied during the execution of a ClassFileTransformer that was
generated by an AgentBuilder.| Modifier and Type | Interface and Description |
|---|---|
static class |
AgentBuilder.RawMatcher.Conjunction
A conjunction of two raw matchers.
|
static class |
AgentBuilder.RawMatcher.Disjunction
A disjunction of two raw matchers.
|
static class |
AgentBuilder.RawMatcher.ForElementMatchers
A raw matcher implementation that checks a
TypeDescription
and its ClassLoader against two suitable matchers in order to determine if the matched
type should be instrumented. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformers. |
boolean matches(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain)
typeDescription should be instrumented with the entailed
AgentBuilder.Transformers.typeDescription - A description of the type to be instrumented.classLoader - The class loader of the instrumented type. Might be null if this class
loader represents the bootstrap class loader.module - The transformed type's module or null if the current VM does not support modules.classBeingRedefined - The class being redefined which is only not null if a retransformation
is applied.protectionDomain - The protection domain of the type being transformed.true if the entailed AgentBuilder.Transformers should
be applied for the given typeDescription.Copyright © 2014–2016. All rights reserved.