public static class AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation extends Object implements AgentBuilder.RedefinitionStrategy.Collector
AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition, AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation| Modifier | Constructor and Description |
|---|---|
protected |
ForRetransformation(AgentBuilder.Default.Transformation transformation)
Creates a new collector for a retransformation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Instrumentation instrumentation,
AgentBuilder.BinaryLocator binaryLocator,
AgentBuilder.Listener listener)
Applies this collector.
|
boolean |
consider(Class<?> type,
ElementMatcher<? super TypeDescription> ignoredTypes)
Considers a loaded class for modification.
|
String |
toString() |
protected ForRetransformation(AgentBuilder.Default.Transformation transformation)
transformation - The transformation defined by the built agent.public boolean consider(Class<?> type, ElementMatcher<? super TypeDescription> ignoredTypes)
AgentBuilder.RedefinitionStrategy.Collectorconsider in interface AgentBuilder.RedefinitionStrategy.Collectortype - The type that is to be considered.ignoredTypes - A matcher that indicates what types are explicitly ignored.true if the class is considered to be redefined.public void apply(Instrumentation instrumentation, AgentBuilder.BinaryLocator binaryLocator, AgentBuilder.Listener listener) throws UnmodifiableClassException
AgentBuilder.RedefinitionStrategy.Collectorapply in interface AgentBuilder.RedefinitionStrategy.Collectorinstrumentation - The instrumentation instance to apply the transformation for.binaryLocator - The binary locator to use.listener - the listener to notify.UnmodifiableClassException - If a class is not modifiable.Copyright © 2014–2016. All rights reserved.