Uses of Interface
net.bytebuddy.agent.builder.AgentBuilder
Packages that use AgentBuilder
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
-
Uses of AgentBuilder in net.bytebuddy.agent.builder
Subinterfaces of AgentBuilder in net.bytebuddy.agent.builderModifier and TypeInterfaceDescriptionstatic interface
This interface is used to allow for optionally providing severalAgentBuilder.Transformer
to applied when a matcher identifies a type to be instrumented.static interface
Allows to further specify ignored types.static interface
An agent builder configuration that allows the registration of listeners to the redefinition process.static interface
An agent builder configuration strategy that allows the definition of a discovery strategy.static interface
An agent builder configuration that allows the configuration of a batching strategy.static interface
A complete but extendable resubmission specification.Classes in net.bytebuddy.agent.builder that implement AgentBuilderModifier and TypeClassDescriptionstatic class
The default implementation of anAgentBuilder
.protected static class
An abstract implementation of an agent builder that delegates all invocation to another instance.protected static class
An abstract base implementation of a matchable.protected class
A delegator transformer for further precising what types to ignore.protected static class
An implementation of a default agent builder that allows for refinement of the redefinition strategy.protected class
A delegator that applies a resubmission.protected class
A helper class that describes aAgentBuilder.Default
after supplying aAgentBuilder.RawMatcher
such that one or severalAgentBuilder.Transformer
s can be supplied.Methods in net.bytebuddy.agent.builder that return AgentBuilderModifier and TypeMethodDescriptionAgentBuilder.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.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.assureReadEdgeFromAndTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type and vice versa.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.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.Default.assureReadEdgeFromAndTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type and vice versa.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.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.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.assureReadEdgeTo
(Instrumentation instrumentation, Class<?>... type) Assures that all modules of the supplied types are read by the module of any instrumented type.AgentBuilder.assureReadEdgeTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.assureReadEdgeTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type.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.Default.assureReadEdgeTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.Default.assureReadEdgeTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type.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.Default.Delegator.assureReadEdgeTo
(Instrumentation instrumentation, Collection<? extends JavaModule> modules) Assures that all supplied modules are read by the module of any instrumented type.AgentBuilder.Default.Delegator.assureReadEdgeTo
(Instrumentation instrumentation, JavaModule... module) Assures that all supplied modules are read by the module of any instrumented type.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.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.Default.Delegator.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.AgentBuilder.Default.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.AgentBuilder.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.AgentBuilder.Default.Delegator.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.AgentBuilder.Default.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.AgentBuilder.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.AgentBuilder.Default.Delegator.enableNativeMethodPrefix
(String prefix) Enables the use of the given native method prefix for instrumented methods.AgentBuilder.Default.enableNativeMethodPrefix
(String prefix) Enables the use of the given native method prefix for instrumented methods.AgentBuilder.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 describedAgentBuilder
.protected AgentBuilder
AgentBuilder.Default.Ignoring.materialize()
protected AgentBuilder
AgentBuilder.Default.Redefining.WithResubmission.materialize()
protected AgentBuilder
AgentBuilder.Default.Transforming.materialize()
static AgentBuilder
Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, List<? extends Plugin> plugins) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, Plugin... plugin) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, ClassFileVersion classFileVersion, List<? extends Plugin> plugins) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, ClassFileVersion classFileVersion, Plugin... plugin) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(ClassFileVersion classFileVersion, List<? extends Plugin> plugins) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(ClassFileVersion classFileVersion, Plugin... plugin) Creates anAgentBuilder
that realizes the provided build plugins.Warms up the generatedClassFileTransformer
to trigger class loading of classes used by the transformer prior to its actual use.AgentBuilder.Default.Delegator.warmUp
(Collection<Class<?>> types) Warms up the generatedClassFileTransformer
to trigger class loading of classes used by the transformer prior to its actual use.Warms up the generatedClassFileTransformer
to trigger class loading of classes used by the transformer prior to its actual use.AgentBuilder.Default.warmUp
(Collection<Class<?>> types) Warms up the generatedClassFileTransformer
to trigger class loading of classes used by the transformer prior to its actual use.Warms up the generatedClassFileTransformer
to trigger class loading of classes used by the transformer prior to its actual use.AgentBuilder.warmUp
(Collection<Class<?>> types) Warms up the generatedClassFileTransformer
to trigger class loading of classes used by the transformer prior to its actual use.AgentBuilder.Default.Delegator.with
(AgentBuilder.CircularityLock circularityLock) Defines a circularity lock that is acquired upon executing code that potentially loads new classes.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.Default.Delegator.with
(AgentBuilder.DescriptionStrategy descriptionStrategy) Specifies a strategy to be used for resolvingTypeDescription
for any type handled by the created transformer.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.Default.Delegator.with
(AgentBuilder.InitializationStrategy initializationStrategy) Defines a given initialization strategy to be applied to generated types.AgentBuilder.Default.Delegator.with
(AgentBuilder.InjectionStrategy injectionStrategy) Defines a strategy for injecting auxiliary types into the target class loader.AgentBuilder.Default.Delegator.with
(AgentBuilder.InstallationListener installationListener) Adds an installation listener that is notified during installation events.AgentBuilder.Default.Delegator.with
(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy) Enables or disables management of the JVM'sLambdaMetafactory
which is responsible for creating classes that implement lambda expressions.AgentBuilder.Default.Delegator.with
(AgentBuilder.Listener listener) Defines the givenAgentBuilder.Listener
to be notified by the created agent.AgentBuilder.Default.Delegator.with
(AgentBuilder.LocationStrategy locationStrategy) Defines the use of the given location strategy for locating binary data to given class names.AgentBuilder.Default.Delegator.with
(AgentBuilder.PoolStrategy poolStrategy) Defines the use of the given type locator for locating aTypeDescription
for an instrumented type.AgentBuilder.Default.Delegator.with
(AgentBuilder.TransformerDecorator transformerDecorator) Adds a decorator for the created class file transformer.AgentBuilder.Default.Delegator.with
(AgentBuilder.TypeStrategy typeStrategy) Defines how types should be transformed, e.g.Defines the givenByteBuddy
instance to be used by the created agent.AgentBuilder.Default.Delegator.with
(ClassFileLocator classFileLocator) AgentBuilder.Default.with
(AgentBuilder.CircularityLock circularityLock) Defines a circularity lock that is acquired upon executing code that potentially loads new classes.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.Default.with
(AgentBuilder.DescriptionStrategy descriptionStrategy) Specifies a strategy to be used for resolvingTypeDescription
for any type handled by the created transformer.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.Default.with
(AgentBuilder.InitializationStrategy initializationStrategy) Defines a given initialization strategy to be applied to generated types.AgentBuilder.Default.with
(AgentBuilder.InjectionStrategy injectionStrategy) Defines a strategy for injecting auxiliary types into the target class loader.AgentBuilder.Default.with
(AgentBuilder.InstallationListener installationListener) Adds an installation listener that is notified during installation events.AgentBuilder.Default.with
(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy) Enables or disables management of the JVM'sLambdaMetafactory
which is responsible for creating classes that implement lambda expressions.AgentBuilder.Default.with
(AgentBuilder.Listener listener) Defines the givenAgentBuilder.Listener
to be notified by the created agent.AgentBuilder.Default.with
(AgentBuilder.LocationStrategy locationStrategy) Defines the use of the given location strategy for locating binary data to given class names.AgentBuilder.Default.with
(AgentBuilder.PoolStrategy poolStrategy) Defines the use of the given type locator for locating aTypeDescription
for an instrumented type.AgentBuilder.Default.with
(AgentBuilder.TransformerDecorator transformerDecorator) Adds a decorator for the created class file transformer.AgentBuilder.Default.with
(AgentBuilder.TypeStrategy typeStrategy) Defines how types should be transformed, e.g.Defines the givenByteBuddy
instance to be used by the created agent.AgentBuilder.Default.with
(ClassFileLocator classFileLocator) AgentBuilder.with
(AgentBuilder.CircularityLock circularityLock) Defines a circularity lock that is acquired upon executing code that potentially loads new classes.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.with
(AgentBuilder.DescriptionStrategy descriptionStrategy) Specifies a strategy to be used for resolvingTypeDescription
for any type handled by the created transformer.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.with
(AgentBuilder.InitializationStrategy initializationStrategy) Defines a given initialization strategy to be applied to generated types.AgentBuilder.with
(AgentBuilder.InjectionStrategy injectionStrategy) Defines a strategy for injecting auxiliary types into the target class loader.AgentBuilder.with
(AgentBuilder.InstallationListener installationListener) Adds an installation listener that is notified during installation events.AgentBuilder.with
(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy) Enables or disables management of the JVM'sLambdaMetafactory
which is responsible for creating classes that implement lambda expressions.AgentBuilder.with
(AgentBuilder.Listener listener) Defines the givenAgentBuilder.Listener
to be notified by the created agent.AgentBuilder.with
(AgentBuilder.LocationStrategy locationStrategy) Defines the use of the given location strategy for locating binary data to given class names.AgentBuilder.with
(AgentBuilder.PoolStrategy poolStrategy) Defines the use of the given type locator for locating aTypeDescription
for an instrumented type.AgentBuilder.with
(AgentBuilder.TransformerDecorator transformerDecorator) Adds a decorator for the created class file transformer.AgentBuilder.with
(AgentBuilder.TypeStrategy typeStrategy) Defines how types should be transformed, e.g.Defines the givenByteBuddy
instance to be used by the created agent.AgentBuilder.with
(ClassFileLocator classFileLocator) Registers an additional class file locator for types that are globally available but cannot be located otherwise.