public static interface AgentBuilder.Listener
Modifier and Type | Interface and Description |
---|---|
static class |
AgentBuilder.Listener.Compound
A compound listener that allows to group several listeners in one instance.
|
static class |
AgentBuilder.Listener.NoOp
A no-op implementation of a
AgentBuilder.Listener . |
static class |
AgentBuilder.Listener.StreamWriting
A listener that writes events to a
PrintStream . |
Modifier and Type | Method and Description |
---|---|
void |
onComplete(String typeName)
Invoked after a class was attempted to be loaded, independently of its treatment.
|
void |
onError(String typeName,
Throwable throwable)
Invoked when an error has occurred.
|
void |
onIgnored(TypeDescription typeDescription)
Invoked when a type is not transformed but ignored.
|
void |
onTransformation(TypeDescription typeDescription,
DynamicType dynamicType)
Invoked right before a successful transformation is applied.
|
void onTransformation(TypeDescription typeDescription, DynamicType dynamicType)
typeDescription
- The type that is being transformed.dynamicType
- The dynamic type that was created.void onIgnored(TypeDescription typeDescription)
typeDescription
- The type being ignored.void onError(String typeName, Throwable throwable)
typeName
- The binary name of the instrumented type.throwable
- The occurred error.void onComplete(String typeName)
typeName
- The binary name of the instrumented type.Copyright © 2014–2016. All rights reserved.