protected static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionListener 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.WithTransformationsOnly
LOADED
Modifier | Constructor and Description |
---|---|
protected |
ResubmissionListener(ElementMatcher<? super Throwable> matcher,
ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,Set<String>> types) |
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.
|
onComplete, onDiscovery, onIgnored, onTransformation
protected ResubmissionListener(ElementMatcher<? super Throwable> matcher, ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,Set<String>> types)
matcher
- The matcher for filtering error causes.types
- A map of class loaders to their types to resubmit.public void onError(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable)
AgentBuilder.Listener
onError
in interface AgentBuilder.Listener
onError
in class AgentBuilder.Listener.Adapter
typeName
- The binary name of the instrumented type.classLoader
- The class loader which is loading this type.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–2018. All rights reserved.