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.allowRetransformation()
Enables retransformation when this agent is installed.
|
AgentBuilder |
AgentBuilder.Default.allowRetransformation() |
AgentBuilder |
AgentBuilder.Default.Matched.allowRetransformation() |
AgentBuilder |
AgentBuilder.disableSelfInitialization()
Disables the execution of any
LoadedTypeInitializer s that are registered
with a DynamicType . |
AgentBuilder |
AgentBuilder.Default.disableSelfInitialization() |
AgentBuilder |
AgentBuilder.Default.Matched.disableSelfInitialization() |
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) |
protected AgentBuilder |
AgentBuilder.Default.Matched.materialize()
Materializes the currently described
AgentBuilder.Default.Transformation . |
AgentBuilder |
AgentBuilder.withBinaryLocator(AgentBuilder.BinaryLocator binaryLocator)
Defines the use of the given binary locator for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.Default.withBinaryLocator(AgentBuilder.BinaryLocator binaryLocator) |
AgentBuilder |
AgentBuilder.Default.Matched.withBinaryLocator(AgentBuilder.BinaryLocator binaryLocator) |
AgentBuilder |
AgentBuilder.withByteBuddy(ByteBuddy byteBuddy)
Defines the given
ByteBuddy instance to be used by the created agent. |
AgentBuilder |
AgentBuilder.Default.withByteBuddy(ByteBuddy byteBuddy) |
AgentBuilder |
AgentBuilder.Default.Matched.withByteBuddy(ByteBuddy byteBuddy) |
AgentBuilder |
AgentBuilder.withListener(AgentBuilder.Listener listener)
Defines the given
AgentBuilder.Listener to be notified by the created agent. |
AgentBuilder |
AgentBuilder.Default.withListener(AgentBuilder.Listener listener) |
AgentBuilder |
AgentBuilder.Default.Matched.withListener(AgentBuilder.Listener listener) |
AgentBuilder |
AgentBuilder.withNativeMethodPrefix(String prefix)
Enables the use of the given native method prefix for instrumented methods.
|
AgentBuilder |
AgentBuilder.Default.withNativeMethodPrefix(String prefix) |
AgentBuilder |
AgentBuilder.Default.Matched.withNativeMethodPrefix(String prefix) |
Copyright © 2014–2015. All rights reserved.