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,
ByteBuddy byteBuddy,
AgentBuilder.BinaryLocator binaryLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AccessControlContext accessControlContext,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy)
Applies the represented type modification on all collected types.
|
boolean |
consider(Class<?> type)
Considers a loaded class for modification.
|
boolean consider(Class<?> type)
type
- The type that is to be considered.true
if the class is considered to be redefined.void apply(Instrumentation instrumentation, ByteBuddy byteBuddy, AgentBuilder.BinaryLocator binaryLocator, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.Listener listener, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AccessControlContext accessControlContext, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy) throws UnmodifiableClassException, ClassNotFoundException
instrumentation
- The instrumentation to use.byteBuddy
- The Byte Buddy configuration to use.binaryLocator
- The binary locator to use.typeStrategy
- The type strategy to use.listener
- The listener to report to.nativeMethodStrategy
- The native method strategy to apply.accessControlContext
- The access control context to use.initializationStrategy
- The initialization strategy to use.bootstrapInjectionStrategy
- The bootstrap injection strategy to use.UnmodifiableClassException
- If an unmodifiable class is attempted to be modified.ClassNotFoundException
- If a class cannot be found while redefining another class.Copyright © 2014–2016. All rights reserved.