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.TypeLocator typeLocator,
AgentBuilder.Listener listener)
Applies this collector.
|
boolean |
consider(Class<?> type,
AgentBuilder.RawMatcher ignoredTypeMatcher)
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, AgentBuilder.RawMatcher ignoredTypeMatcher)
AgentBuilder.RedefinitionStrategy.Collector
consider
in interface AgentBuilder.RedefinitionStrategy.Collector
type
- 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
AgentBuilder.RedefinitionStrategy.Collector
apply
in interface AgentBuilder.RedefinitionStrategy.Collector
instrumentation
- 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.Copyright © 2014–2016. All rights reserved.