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 | Interface and Description |
---|---|
static interface |
AgentBuilder.Identified.Extendable
This interface is used to allow for optionally providing several
AgentBuilder.Transformer to applied when a matcher identifies a type
to be instrumented. |
static interface |
AgentBuilder.Ignored
Allows to further specify ignored types.
|
static interface |
AgentBuilder.RedefinitionListenable
An agent builder configuration that allows the registration of listeners to the redefinition process.
|
static interface |
AgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategy
An agent builder configuration strategy that allows the definition of a discovery strategy.
|
static interface |
AgentBuilder.RedefinitionListenable.WithoutBatchStrategy
An agent builder configuration that allows the configuration of a batching strategy.
|
Modifier and Type | Class and Description |
---|---|
static class |
AgentBuilder.Default
The default implementation of an
AgentBuilder . |
protected class |
AgentBuilder.Default.Delegator<T extends AgentBuilder.Matchable<T>>
An abstract implementation of an agent builder that delegates all invocation to another instance.
|
protected class |
AgentBuilder.Default.Ignoring
A delegator transformer for further precising what types to ignore.
|
protected static class |
AgentBuilder.Default.Redefining
An implementation of a default agent builder that allows for refinement of the redefinition strategy.
|
protected class |
AgentBuilder.Default.Transforming
A helper class that describes a
AgentBuilder.Default after supplying
a AgentBuilder.RawMatcher such that one or several
AgentBuilder.Transformer s can be supplied. |
Modifier and Type | Method and Description |
---|---|
AgentBuilder |
AgentBuilder.assureReadEdgeFromAndTo(Instrumentation instrumentation,
Class<?>... type)
Assures that all modules of the supplied types are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.Default.assureReadEdgeFromAndTo(Instrumentation instrumentation,
Class<?>... type)
Assures that all modules of the supplied types are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.Default.Delegator.assureReadEdgeFromAndTo(Instrumentation instrumentation,
Class<?>... type)
Assures that all modules of the supplied types are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.assureReadEdgeFromAndTo(Instrumentation instrumentation,
Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.Default.assureReadEdgeFromAndTo(Instrumentation instrumentation,
Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.Default.Delegator.assureReadEdgeFromAndTo(Instrumentation instrumentation,
Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.assureReadEdgeFromAndTo(Instrumentation instrumentation,
JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.Default.assureReadEdgeFromAndTo(Instrumentation instrumentation,
JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.Default.Delegator.assureReadEdgeFromAndTo(Instrumentation instrumentation,
JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type and vice versa.
|
AgentBuilder |
AgentBuilder.assureReadEdgeTo(Instrumentation instrumentation,
Class<?>... type)
Assures that all modules of the supplied types are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Default.assureReadEdgeTo(Instrumentation instrumentation,
Class<?>... type)
Assures that all modules of the supplied types are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Default.Delegator.assureReadEdgeTo(Instrumentation instrumentation,
Class<?>... type)
Assures that all modules of the supplied types are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.assureReadEdgeTo(Instrumentation instrumentation,
Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Default.assureReadEdgeTo(Instrumentation instrumentation,
Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Default.Delegator.assureReadEdgeTo(Instrumentation instrumentation,
Collection<? extends JavaModule> modules)
Assures that all supplied modules are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.assureReadEdgeTo(Instrumentation instrumentation,
JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Default.assureReadEdgeTo(Instrumentation instrumentation,
JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Default.Delegator.assureReadEdgeTo(Instrumentation instrumentation,
JavaModule... module)
Assures that all supplied modules are read by the module of any instrumented type.
|
AgentBuilder |
AgentBuilder.Identified.Extendable.asTerminalTransformation()
Applies the previously defined transformation as terminal such that no subsequent transformers are applied even
if their matchers would include the type that was matched for applying this transformer.
|
AgentBuilder |
AgentBuilder.Default.Transforming.asTerminalTransformation()
Applies the previously defined transformation as terminal such that no subsequent transformers are applied even
if their matchers would include the type that was matched for applying this transformer.
|
AgentBuilder |
AgentBuilder.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.
|
AgentBuilder |
AgentBuilder.Default.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.
|
AgentBuilder |
AgentBuilder.Default.Delegator.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.
|
AgentBuilder |
AgentBuilder.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.Delegator.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.enableNativeMethodPrefix(String prefix)
Enables the use of the given native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.enableNativeMethodPrefix(String prefix)
Enables the use of the given native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.Delegator.enableNativeMethodPrefix(String prefix)
Enables the use of the given native method prefix for instrumented methods.
|
protected abstract AgentBuilder |
AgentBuilder.Default.Delegator.materialize()
Materializes the currently described
AgentBuilder . |
protected AgentBuilder |
AgentBuilder.Default.Ignoring.materialize() |
protected AgentBuilder |
AgentBuilder.Default.Transforming.materialize() |
static AgentBuilder |
AgentBuilder.Default.of(ClassFileVersion classFileVersion,
List<? extends Plugin> plugins)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(ClassFileVersion classFileVersion,
Plugin... plugin)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(EntryPoint entryPoint,
ClassFileVersion classFileVersion,
List<? extends Plugin> plugins)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(EntryPoint entryPoint,
ClassFileVersion classFileVersion,
Plugin... plugin)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(EntryPoint entryPoint,
List<? extends Plugin> plugins)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(EntryPoint entryPoint,
Plugin... plugin)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(List<? extends Plugin> plugins)
Creates an
AgentBuilder that realizes the provided build plugins. |
static AgentBuilder |
AgentBuilder.Default.of(Plugin... plugin)
Creates an
AgentBuilder that realizes the provided build plugins. |
AgentBuilder |
AgentBuilder.with(AgentBuilder.CircularityLock circularityLock)
Defines a circularity lock that is acquired upon executing code that potentially loads new classes.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.CircularityLock circularityLock)
Defines a circularity lock that is acquired upon executing code that potentially loads new classes.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.CircularityLock circularityLock)
Defines a circularity lock that is acquired upon executing code that potentially loads new classes.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy)
Specifies a class file buffer strategy that determines the use of the buffer supplied to a class file transformer.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy)
Specifies a class file buffer strategy that determines the use of the buffer supplied to a class file transformer.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy)
Specifies a class file buffer strategy that determines the use of the buffer supplied to a class file transformer.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.DescriptionStrategy descriptionStrategy)
Specifies a strategy to be used for resolving
TypeDescription for any type handled by the created transformer. |
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.DescriptionStrategy descriptionStrategy)
Specifies a strategy to be used for resolving
TypeDescription for any type handled by the created transformer. |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.DescriptionStrategy descriptionStrategy)
Specifies a strategy to be used for resolving
TypeDescription for any type handled by the created transformer. |
AgentBuilder |
AgentBuilder.with(AgentBuilder.FallbackStrategy fallbackStrategy)
Specifies a fallback strategy to that this agent builder applies upon installing an agent and during class file transformation.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.FallbackStrategy fallbackStrategy)
Specifies a fallback strategy to that this agent builder applies upon installing an agent and during class file transformation.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.FallbackStrategy fallbackStrategy)
Specifies a fallback strategy to that this agent builder applies upon installing an agent and during class file transformation.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.InitializationStrategy initializationStrategy)
Defines a given initialization strategy to be applied to generated types.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.InitializationStrategy initializationStrategy)
Defines a given initialization strategy to be applied to generated types.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.InitializationStrategy initializationStrategy)
Defines a given initialization strategy to be applied to generated types.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.InjectionStrategy injectionStrategy)
Defines a strategy for injecting auxiliary types into the target class loader.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.InjectionStrategy injectionStrategy)
Defines a strategy for injecting auxiliary types into the target class loader.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.InjectionStrategy injectionStrategy)
Defines a strategy for injecting auxiliary types into the target class loader.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.InstallationListener installationListener)
Adds an installation listener that is notified during installation events.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.InstallationListener installationListener)
Adds an installation listener that is notified during installation events.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.InstallationListener installationListener)
Adds an installation listener that is notified during installation events.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy)
Enables or disables management of the JVM's
LambdaMetafactory which is responsible for creating classes that
implement lambda expressions. |
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy)
Enables or disables management of the JVM's
LambdaMetafactory which is responsible for creating classes that
implement lambda expressions. |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy)
Enables or disables management of the JVM's
LambdaMetafactory which is responsible for creating classes that
implement lambda expressions. |
AgentBuilder |
AgentBuilder.with(AgentBuilder.Listener listener)
Defines the given
AgentBuilder.Listener to be notified by the created agent. |
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.Listener listener)
Defines the given
AgentBuilder.Listener to be notified by the created agent. |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.Listener listener)
Defines the given
AgentBuilder.Listener to be notified by the created agent. |
AgentBuilder |
AgentBuilder.with(AgentBuilder.LocationStrategy locationStrategy)
Defines the use of the given location strategy for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.LocationStrategy locationStrategy)
Defines the use of the given location strategy for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.LocationStrategy locationStrategy)
Defines the use of the given location strategy for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.PoolStrategy poolStrategy)
Defines the use of the given type locator for locating a
TypeDescription for an instrumented type. |
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.PoolStrategy poolStrategy)
Defines the use of the given type locator for locating a
TypeDescription for an instrumented type. |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.PoolStrategy poolStrategy)
Defines the use of the given type locator for locating a
TypeDescription for an instrumented type. |
AgentBuilder |
AgentBuilder.with(AgentBuilder.TransformerDecorator transformerDecorator)
Adds a decorator for the created class file transformer.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.TransformerDecorator transformerDecorator)
Adds a decorator for the created class file transformer.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.TransformerDecorator transformerDecorator)
Adds a decorator for the created class file transformer.
|
AgentBuilder |
AgentBuilder.with(AgentBuilder.TypeStrategy typeStrategy)
Defines how types should be transformed, e.g.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.TypeStrategy typeStrategy)
Defines how types should be transformed, e.g.
|
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.TypeStrategy typeStrategy)
Defines how types should be transformed, e.g.
|
AgentBuilder |
AgentBuilder.with(ByteBuddy byteBuddy)
Defines the given
ByteBuddy instance to be used by the created agent. |
AgentBuilder |
AgentBuilder.Default.with(ByteBuddy byteBuddy)
Defines the given
ByteBuddy instance to be used by the created agent. |
AgentBuilder |
AgentBuilder.Default.Delegator.with(ByteBuddy byteBuddy)
Defines the given
ByteBuddy instance to be used by the created agent. |
AgentBuilder |
AgentBuilder.RedefinitionListenable.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.Default.Redefining.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.RedefinitionListenable.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.Default.Redefining.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.RedefinitionListenable.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
AgentBuilder.Default.Redefining.withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher,
ElementMatcher<? super ClassLoader> classLoaderFilter)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
Copyright © 2014–2020. All rights reserved.