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.
|
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 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.Identified.Extendable.asDecorator()
Applies the specified transformation as a decorative transformation.
|
AgentBuilder |
AgentBuilder.Default.Transforming.asDecorator() |
AgentBuilder |
AgentBuilder.disableBootstrapInjection()
Disables injection of auxiliary classes into the bootstrap class path.
|
AgentBuilder |
AgentBuilder.Default.disableBootstrapInjection() |
AgentBuilder |
AgentBuilder.Default.Delegator.disableBootstrapInjection() |
AgentBuilder |
AgentBuilder.disableClassFormatChanges()
Disables all implicit changes on a class file that Byte Buddy would apply for certain instrumentations.
|
AgentBuilder |
AgentBuilder.Default.disableClassFormatChanges() |
AgentBuilder |
AgentBuilder.Default.Delegator.disableClassFormatChanges() |
AgentBuilder |
AgentBuilder.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.disableNativeMethodPrefix() |
AgentBuilder |
AgentBuilder.Default.Delegator.disableNativeMethodPrefix() |
AgentBuilder |
AgentBuilder.enableBootstrapInjection(File folder,
Instrumentation instrumentation)
Enables class injection of auxiliary classes into the bootstrap class loader.
|
AgentBuilder |
AgentBuilder.Default.enableBootstrapInjection(File folder,
Instrumentation instrumentation) |
AgentBuilder |
AgentBuilder.Default.Delegator.enableBootstrapInjection(File folder,
Instrumentation instrumentation) |
AgentBuilder |
AgentBuilder.enableNativeMethodPrefix(String prefix)
Enables the use of the given native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.enableNativeMethodPrefix(String prefix) |
AgentBuilder |
AgentBuilder.Default.Delegator.enableNativeMethodPrefix(String prefix) |
protected abstract AgentBuilder |
AgentBuilder.Default.Delegator.materialize()
Materializes the currently described
AgentBuilder . |
protected AgentBuilder |
AgentBuilder.Default.Ignoring.materialize() |
protected AgentBuilder |
AgentBuilder.Default.Transforming.materialize() |
AgentBuilder |
AgentBuilder.with(AccessControlContext accessControlContext)
Defines classes to be loaded using the given access control context.
|
AgentBuilder |
AgentBuilder.Default.with(AccessControlContext accessControlContext) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AccessControlContext accessControlContext) |
AgentBuilder |
AgentBuilder.with(AgentBuilder.InitializationStrategy initializationStrategy)
Defines a given initialization strategy to be applied to generated types.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.InitializationStrategy initializationStrategy) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.InitializationStrategy initializationStrategy) |
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) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy) |
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) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.Listener listener) |
AgentBuilder |
AgentBuilder.with(AgentBuilder.RedefinitionStrategy redefinitionStrategy)
Specifies a strategy for modifying existing types.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.RedefinitionStrategy redefinitionStrategy) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.RedefinitionStrategy redefinitionStrategy) |
AgentBuilder |
AgentBuilder.with(AgentBuilder.TypeLocator typeLocator)
Defines the use of the given type locator for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.TypeLocator typeLocator) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.TypeLocator typeLocator) |
AgentBuilder |
AgentBuilder.with(AgentBuilder.TypeStrategy typeStrategy)
Defines the use of the given definition handler that determines if a type should be rebased or redefined.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.TypeStrategy typeStrategy) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.TypeStrategy typeStrategy) |
AgentBuilder |
AgentBuilder.with(ByteBuddy byteBuddy)
Defines the given
ByteBuddy instance to be used by the created agent. |
AgentBuilder |
AgentBuilder.Default.with(ByteBuddy byteBuddy) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(ByteBuddy byteBuddy) |
Copyright © 2014–2016. All rights reserved.