public static class AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition extends Object implements AgentBuilder.RedefinitionStrategy.Collector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition.Entry
An entry describing a type redefinition.
|
AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition, AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation| Modifier | Constructor and Description |
|---|---|
protected |
ForRedefinition(AgentBuilder.Default.Transformation transformation)
Creates a new collector for a redefinition.
|
| 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 ForRedefinition(AgentBuilder.Default.Transformation transformation)
transformation - The transformation of 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, ClassNotFoundException
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.ClassNotFoundException - If a class could not be found.Copyright © 2014–2016. All rights reserved.