protected static class AgentBuilder.Default.ExecutingTransformer extends Object implements ClassFileTransformer
ClassFileTransformer that implements the enclosing agent builder's
configuration.| Constructor and Description |
|---|
ExecutingTransformer(ByteBuddy byteBuddy,
AgentBuilder.BinaryLocator binaryLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AccessControlContext accessControlContext,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.Default.Transformation transformation)
Creates a new class file transformer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
byte[] |
transform(ClassLoader classLoader,
String internalTypeName,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] binaryRepresentation) |
public ExecutingTransformer(ByteBuddy byteBuddy, AgentBuilder.BinaryLocator binaryLocator, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.Listener listener, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AccessControlContext accessControlContext, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.Default.Transformation transformation)
byteBuddy - The Byte Buddy instance to be used.binaryLocator - The binary locator to use.typeStrategy - The definition handler to use.listener - The listener to notify on transformations.nativeMethodStrategy - The native method strategy to apply.accessControlContext - The access control context to use for loading classes.initializationStrategy - The initialization strategy to use for transformed types.bootstrapInjectionStrategy - The injection strategy for injecting classes into the bootstrap class loader.transformation - The transformation object for handling type transformations.public byte[] transform(ClassLoader classLoader, String internalTypeName, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] binaryRepresentation)
transform in interface ClassFileTransformerCopyright © 2014–2015. All rights reserved.