@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Listener.WithTransformationsOnly 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 |
|---|
WithTransformationsOnly(AgentBuilder.Listener delegate)
Creates a new listener that only delegates events if they are successful or failed transformations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(String typeName,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
Throwable throwable)
Invoked when an error has occurred during transformation.
|
void |
onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
boolean loaded,
DynamicType dynamicType)
Invoked prior to a successful transformation being applied.
|
onComplete, onDiscovery, onIgnoredpublic WithTransformationsOnly(AgentBuilder.Listener delegate)
delegate - The delegate listener.public void onTransformation(TypeDescription typeDescription, @MaybeNull ClassLoader classLoader, @MaybeNull 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 or null if loaded by the boots loader.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.public void onError(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, boolean loaded, Throwable throwable)
AgentBuilder.Listener.AdapteronError in interface AgentBuilder.ListeneronError in class AgentBuilder.Listener.AdaptertypeName - The binary name of the instrumented type.classLoader - The class loader which is loading this type or null if loaded by the boots loader.module - The instrumented type's module or null if the current VM does not support modules.loaded - true if the type is already loaded.throwable - The occurred error.Copyright © 2014–2025. All rights reserved.