@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Listener.ModuleReadEdgeCompleting extends AgentBuilder.Listener.Adapter
AgentBuilder.Listener.Adapter, AgentBuilder.Listener.Compound, AgentBuilder.Listener.Filtering, AgentBuilder.Listener.ModuleReadEdgeCompleting, AgentBuilder.Listener.NoOp, AgentBuilder.Listener.StreamWriting, AgentBuilder.Listener.WithErrorsOnly, AgentBuilder.Listener.WithTransformationsOnlyLOADED| Constructor and Description |
|---|
ModuleReadEdgeCompleting(Instrumentation instrumentation,
boolean addTargetEdge,
Set<? extends JavaModule> modules)
Creates a new module read-edge completing listener.
|
| Modifier and Type | Method and Description |
|---|---|
static AgentBuilder.Listener |
of(Instrumentation instrumentation,
boolean addTargetEdge,
Class<?>... type)
Resolves a listener that adds module edges from and to the instrumented type's module.
|
void |
onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
onComplete, onDiscovery, onError, onIgnoredpublic ModuleReadEdgeCompleting(Instrumentation instrumentation, boolean addTargetEdge, Set<? extends JavaModule> modules)
instrumentation - The instrumentation instance used for adding read edges.addTargetEdge - true if the listener should also add a read-edge from the supplied modules
to the instrumented type's module.modules - The modules to add as a read edge to any transformed class's module.public static AgentBuilder.Listener of(Instrumentation instrumentation, boolean addTargetEdge, Class<?>... type)
instrumentation - The instrumentation instance used for adding read edges.addTargetEdge - true if the listener should also add a read-edge from the supplied
modules to the instrumented type's module.type - The types for which to extract the modules.public void onTransformation(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType)
AgentBuilder.Listener.AdapteronTransformation in interface AgentBuilder.ListeneronTransformation in class AgentBuilder.Listener.AdaptertypeDescription - The type that is being transformed.classLoader - The class loader which is loading this type.module - The transformed type's module or null if the current VM does not support modules.loaded - true if the type is already loaded.dynamicType - The dynamic type that was created.Copyright © 2014–2019. All rights reserved.