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.TypeLocator typeLocator,
AgentBuilder.Listener listener)
Applies this collector.
|
boolean |
consider(TypeDescription typeDescription,
Class<?> type,
AgentBuilder.RawMatcher ignoredTypeMatcher)
Considers a loaded class for modification.
|
String |
toString() |
protected ForRedefinition(AgentBuilder.Default.Transformation transformation)
transformation - The transformation of the built agent.public boolean consider(TypeDescription typeDescription, Class<?> type, AgentBuilder.RawMatcher ignoredTypeMatcher)
AgentBuilder.RedefinitionStrategy.Collectorconsider in interface AgentBuilder.RedefinitionStrategy.CollectortypeDescription - The type description of the type that is to be considered.type - The loaded representation of the type that is to be considered.ignoredTypeMatcher - Identifies types that should not be instrumented.true if the class is considered to be redefined.public void apply(Instrumentation instrumentation, AgentBuilder.TypeLocator typeLocator, AgentBuilder.Listener listener) throws UnmodifiableClassException, ClassNotFoundException
AgentBuilder.RedefinitionStrategy.Collectorapply in interface AgentBuilder.RedefinitionStrategy.Collectorinstrumentation - The instrumentation instance to apply the transformation for.typeLocator - The type 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.