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. |
Modifier and Type | Class and Description |
---|---|
static class |
AgentBuilder.Default
The default implementation of an
AgentBuilder . |
protected class |
AgentBuilder.Default.Matched
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.disableBootstrapInjection()
Disables injection of auxiliary classes into the bootstrap class path.
|
AgentBuilder |
AgentBuilder.Default.disableBootstrapInjection() |
AgentBuilder |
AgentBuilder.Default.Matched.disableBootstrapInjection() |
AgentBuilder |
AgentBuilder.disableNativeMethodPrefix()
Disables the use of a native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.disableNativeMethodPrefix() |
AgentBuilder |
AgentBuilder.Default.Matched.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.Matched.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.Matched.enableNativeMethodPrefix(String prefix) |
AgentBuilder |
AgentBuilder.ignore(ElementMatcher<? super TypeDescription> ignoredTypes)
Excludes any type that is matched by the provided matcher from instrumentation.
|
AgentBuilder |
AgentBuilder.Default.ignore(ElementMatcher<? super TypeDescription> ignoredTypes) |
AgentBuilder |
AgentBuilder.Default.Matched.ignore(ElementMatcher<? super TypeDescription> ignoredTypes) |
protected AgentBuilder |
AgentBuilder.Default.Matched.materialize()
Materializes the currently described
AgentBuilder.Default.Transformation . |
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.Matched.with(AccessControlContext accessControlContext) |
AgentBuilder |
AgentBuilder.with(AgentBuilder.BinaryLocator binaryLocator)
Defines the use of the given binary locator for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.BinaryLocator binaryLocator) |
AgentBuilder |
AgentBuilder.Default.Matched.with(AgentBuilder.BinaryLocator binaryLocator) |
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.Matched.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.Matched.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.Matched.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.Matched.with(AgentBuilder.RedefinitionStrategy redefinitionStrategy) |
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.Matched.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.Matched.with(ByteBuddy byteBuddy) |
Copyright © 2014–2016. All rights reserved.