Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.Default.ExecutingTransformer
A
ClassFileTransformer that implements the enclosing agent builder's
configuration. |
static class |
ResettableClassFileTransformer.AbstractBase
An abstract base implementation of a
ResettableClassFileTransformer . |
static class |
ResettableClassFileTransformer.WithDelegation
Implements a resettable class file transformer that allows for the delegation of a transformation.
|
Modifier and Type | Field and Description |
---|---|
protected ResettableClassFileTransformer |
ResettableClassFileTransformer.WithDelegation.classFileTransformer
The class file transformer to delegate to.
|
Modifier and Type | Method and Description |
---|---|
ResettableClassFileTransformer |
AgentBuilder.TransformerDecorator.decorate(ResettableClassFileTransformer classFileTransformer)
Decorates the applied class file transformer.
|
ResettableClassFileTransformer |
AgentBuilder.TransformerDecorator.NoOp.decorate(ResettableClassFileTransformer classFileTransformer)
Decorates the applied class file transformer.
|
ResettableClassFileTransformer |
AgentBuilder.installOn(Instrumentation instrumentation)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with a given Instrumentation . |
ResettableClassFileTransformer |
AgentBuilder.Default.installOn(Instrumentation instrumentation)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with a given Instrumentation . |
ResettableClassFileTransformer |
AgentBuilder.Default.Delegator.installOn(Instrumentation instrumentation)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with a given Instrumentation . |
ResettableClassFileTransformer |
AgentBuilder.installOn(Instrumentation instrumentation,
AgentBuilder.TransformerDecorator transformerDecorator)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with a given Instrumentation . |
ResettableClassFileTransformer |
AgentBuilder.Default.installOn(Instrumentation instrumentation,
AgentBuilder.TransformerDecorator transformerDecorator)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with a given Instrumentation . |
ResettableClassFileTransformer |
AgentBuilder.Default.Delegator.installOn(Instrumentation instrumentation,
AgentBuilder.TransformerDecorator transformerDecorator)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with a given Instrumentation . |
ResettableClassFileTransformer |
AgentBuilder.installOnByteBuddyAgent()
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with the Byte Buddy-agent which must be installed prior to calling this method. |
ResettableClassFileTransformer |
AgentBuilder.Default.installOnByteBuddyAgent()
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with the Byte Buddy-agent which must be installed prior to calling this method. |
ResettableClassFileTransformer |
AgentBuilder.Default.Delegator.installOnByteBuddyAgent()
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with the Byte Buddy-agent which must be installed prior to calling this method. |
ResettableClassFileTransformer |
AgentBuilder.installOnByteBuddyAgent(AgentBuilder.TransformerDecorator transformerDecorator)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with the Byte Buddy-agent which must be installed prior to calling this method. |
ResettableClassFileTransformer |
AgentBuilder.Default.installOnByteBuddyAgent(AgentBuilder.TransformerDecorator transformerDecorator)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with the Byte Buddy-agent which must be installed prior to calling this method. |
ResettableClassFileTransformer |
AgentBuilder.Default.Delegator.installOnByteBuddyAgent(AgentBuilder.TransformerDecorator transformerDecorator)
Creates and installs a
ClassFileTransformer that implements the configuration of
this agent builder with the Byte Buddy-agent which must be installed prior to calling this method. |
ResettableClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.make(ByteBuddy byteBuddy,
AgentBuilder.Listener listener,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.InjectionStrategy injectionStrategy,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy,
AgentBuilder.InstallationListener installationListener,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation,
AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.
|
ResettableClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm.make(ByteBuddy byteBuddy,
AgentBuilder.Listener listener,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.InjectionStrategy injectionStrategy,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy,
AgentBuilder.InstallationListener installationListener,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation,
AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.
|
ResettableClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm.make(ByteBuddy byteBuddy,
AgentBuilder.Listener listener,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.InjectionStrategy injectionStrategy,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy,
AgentBuilder.InstallationListener installationListener,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation,
AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.
|
ResettableClassFileTransformer |
AgentBuilder.Default.makeRaw()
Creates a
ClassFileTransformer that implements the configuration of this
agent builder. |
Modifier and Type | Method and Description |
---|---|
ResettableClassFileTransformer |
AgentBuilder.TransformerDecorator.decorate(ResettableClassFileTransformer classFileTransformer)
Decorates the applied class file transformer.
|
ResettableClassFileTransformer |
AgentBuilder.TransformerDecorator.NoOp.decorate(ResettableClassFileTransformer classFileTransformer)
Decorates the applied class file transformer.
|
void |
AgentBuilder.InstallationListener.onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.NoOp.onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.ErrorSuppressing.onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.Adapter.onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.StreamWriting.onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.Compound.onBeforeInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked prior to the installation of a class file transformer.
|
Throwable |
AgentBuilder.InstallationListener.onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
Throwable |
AgentBuilder.InstallationListener.NoOp.onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
Throwable |
AgentBuilder.InstallationListener.ErrorSuppressing.onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
Throwable |
AgentBuilder.InstallationListener.Adapter.onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
Throwable |
AgentBuilder.InstallationListener.StreamWriting.onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
Throwable |
AgentBuilder.InstallationListener.Compound.onError(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
Throwable throwable)
Invoked if an installation causes an error.
|
void |
AgentBuilder.InstallationListener.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.NoOp.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.ErrorSuppressing.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.Adapter.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.StreamWriting.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
AgentBuilder.InstallationListener.Compound.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked upon the successful installation of a class file transformer.
|
void |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener.onInstall(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer) |
void |
AgentBuilder.InstallationListener.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
AgentBuilder.InstallationListener.NoOp.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
AgentBuilder.InstallationListener.ErrorSuppressing.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
AgentBuilder.InstallationListener.Adapter.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
AgentBuilder.InstallationListener.StreamWriting.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
AgentBuilder.InstallationListener.Compound.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer)
Invoked if an installation is reset.
|
void |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener.onReset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer) |
boolean |
ResettableClassFileTransformer.reset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
boolean |
ResettableClassFileTransformer.WithDelegation.reset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
boolean |
AgentBuilder.Default.ExecutingTransformer.reset(Instrumentation instrumentation,
ResettableClassFileTransformer classFileTransformer,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
Constructor and Description |
---|
WithDelegation(ResettableClassFileTransformer classFileTransformer)
Creates a new delegating resettable class file transformer.
|
Constructor and Description |
---|
ForJava9CapableVm(Constructor<? extends ResettableClassFileTransformer> executingTransformer)
Creates a class file transformer factory for a Java 9 capable VM.
|
Copyright © 2014–2019. All rights reserved.