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.BinaryLocator binaryLocator,
AgentBuilder.Listener listener)
Applies this collector.
|
boolean |
consider(Class<?> type,
ElementMatcher<? super TypeDescription> ignoredTypes)
Considers a loaded class for modification.
|
boolean consider(Class<?> type, ElementMatcher<? super TypeDescription> ignoredTypes)
type - 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.void apply(Instrumentation instrumentation, AgentBuilder.BinaryLocator binaryLocator, AgentBuilder.Listener listener) throws UnmodifiableClassException, ClassNotFoundException
instrumentation - 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.