Package | Description |
---|---|
net.bytebuddy.agent |
The Byte Buddy agent allows the redefinition of classes at runtime.
|
Modifier and Type | Class and Description |
---|---|
static class |
ByteBuddyAgent.AttachmentProvider.Compound
A compound attachment provider that attempts the attachment by delegation to other providers.
|
static class |
ByteBuddyAgent.AttachmentProvider.ForJ9Vm
An attachment provider that locates the attach API directly from the system class loader expecting
an IBM J9 VM.
|
static class |
ByteBuddyAgent.AttachmentProvider.ForModularizedVm
An attachment provider that locates the attach API directly from the system class loader, as possible since
introducing the Java module system via the
jdk.attach module. |
static class |
ByteBuddyAgent.AttachmentProvider.ForStandardToolsJarVm
An attachment provider that is dependant on the existence of a tools.jar file on the local
file system.
|
static class |
ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar
An attachment provider that attempts to locate a
tools.jar from a custom location set via a system property. |
Modifier and Type | Field and Description |
---|---|
static ByteBuddyAgent.AttachmentProvider |
ByteBuddyAgent.AttachmentProvider.DEFAULT
The default attachment provider to be used.
|
Modifier and Type | Method and Description |
---|---|
static void |
ByteBuddyAgent.attach(File agentJar,
ByteBuddyAgent.ProcessProvider processProvider,
ByteBuddyAgent.AttachmentProvider attachmentProvider)
Attaches the given agent Jar on the target process which must be a virtual machine process.
|
static void |
ByteBuddyAgent.attach(File agentJar,
ByteBuddyAgent.ProcessProvider processProvider,
String argument,
ByteBuddyAgent.AttachmentProvider attachmentProvider)
Attaches the given agent Jar on the target process which must be a virtual machine process.
|
static void |
ByteBuddyAgent.attach(File agentJar,
String processId,
ByteBuddyAgent.AttachmentProvider attachmentProvider)
Attaches the given agent Jar on the target process which must be a virtual machine process.
|
static void |
ByteBuddyAgent.attach(File agentJar,
String processId,
String argument,
ByteBuddyAgent.AttachmentProvider attachmentProvider)
Attaches the given agent Jar on the target process which must be a virtual machine process.
|
static Instrumentation |
ByteBuddyAgent.install(ByteBuddyAgent.AttachmentProvider attachmentProvider)
Installs a Java agent using the Java attach API.
|
static Instrumentation |
ByteBuddyAgent.install(ByteBuddyAgent.AttachmentProvider attachmentProvider,
ByteBuddyAgent.ProcessProvider processProvider)
Installs a Java agent using the Java attach API.
|
Constructor and Description |
---|
Compound(ByteBuddyAgent.AttachmentProvider... attachmentProvider)
Creates a new compound attachment provider.
|
Constructor and Description |
---|
Compound(List<? extends ByteBuddyAgent.AttachmentProvider> attachmentProviders)
Creates a new compound attachment provider.
|
Copyright © 2014–2021. All rights reserved.