protected static interface AgentBuilder.RedefinitionStrategy.Collector
Modifier and Type | Interface and Description |
---|---|
static class |
AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition
A collector that applies a redefinition of already loaded classes.
|
static class |
AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation
A collector that applies a retransformation of already loaded classes.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Instrumentation instrumentation,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener)
Applies this collector.
|
boolean |
consider(TypeDescription typeDescription,
Class<?> type,
Class<?> classBeingRedefined,
AgentBuilder.RawMatcher ignoredTypeMatcher)
Considers a loaded class for modification.
|
boolean consider(TypeDescription typeDescription, Class<?> type, Class<?> classBeingRedefined, AgentBuilder.RawMatcher ignoredTypeMatcher)
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.void apply(Instrumentation instrumentation, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Listener listener) throws UnmodifiableClassException, ClassNotFoundException
instrumentation
- The instrumentation instance to apply the transformation for.poolStrategy
- The type locator to use.locationStrategy
- The location strategy 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.