public abstract static class AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation extends Object implements AgentBuilder.RedefinitionStrategy.Collector
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation.Chunked
A collector that applies a retransformation and applies all redefinitions as a chunked transformation request.
|
protected static class |
AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation.Cumulative
A collector that applies a retransformation and applies all redefinitions as a single transformation request.
|
AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition, AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation
Modifier and Type | Field and Description |
---|---|
protected AgentBuilder.Default.Transformation |
transformation
The transformation defined by the built agent.
|
protected List<Class<?>> |
types
The types that were collected for retransformation.
|
Modifier | Constructor and Description |
---|---|
protected |
ForRetransformation(AgentBuilder.Default.Transformation transformation)
Creates a new collector for a retransformation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
consider(TypeDescription typeDescription,
Class<?> type,
Class<?> classBeingRedefined,
AgentBuilder.RawMatcher ignoredTypeMatcher)
Considers a loaded class for modification.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected final AgentBuilder.Default.Transformation transformation
protected ForRetransformation(AgentBuilder.Default.Transformation transformation)
transformation
- The transformation defined by the built agent.public boolean consider(TypeDescription typeDescription, Class<?> type, Class<?> classBeingRedefined, AgentBuilder.RawMatcher ignoredTypeMatcher)
AgentBuilder.RedefinitionStrategy.Collector
consider
in interface AgentBuilder.RedefinitionStrategy.Collector
typeDescription
- The type description of the type that is to be considered.type
- The loaded representation of the type that is to be considered.classBeingRedefined
- The loaded representation of the type that is to be considered or null
if the
loaded type representation should not be considered.ignoredTypeMatcher
- Identifies types that should not be instrumented.true
if the class is considered to be redefined.Copyright © 2014–2016. All rights reserved.