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.ProcessProvider.ForCurrentVm
Supplies the current VM's process id.
|
protected static class |
ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForJava9CapableVm
A process provider for a Java 9 capable VM with access to the introduced process API.
|
protected static class |
ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm
A process provider for a legacy VM that reads the process id from its JMX properties.
|
Modifier and Type | Method and Description |
---|---|
static ByteBuddyAgent.ProcessProvider |
ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForJava9CapableVm.make()
Attempts to create a dispatcher for a Java 9 VM and falls back to a legacy dispatcher
if this is not possible.
|
Modifier and Type | Method and Description |
---|---|
static void |
ByteBuddyAgent.attach(File agentJar,
ByteBuddyAgent.ProcessProvider processProvider)
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,
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)
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.attachNative(File agentLibrary,
ByteBuddyAgent.ProcessProvider processProvider)
Attaches the given agent library on the target process which must be a virtual machine process.
|
static void |
ByteBuddyAgent.attachNative(File agentLibrary,
ByteBuddyAgent.ProcessProvider processProvider,
ByteBuddyAgent.AttachmentProvider attachmentProvider)
Attaches the given agent library on the target process which must be a virtual machine process.
|
static void |
ByteBuddyAgent.attachNative(File agentLibrary,
ByteBuddyAgent.ProcessProvider processProvider,
String argument)
Attaches the given agent library on the target process which must be a virtual machine process.
|
static void |
ByteBuddyAgent.attachNative(File agentLibrary,
ByteBuddyAgent.ProcessProvider processProvider,
String argument,
ByteBuddyAgent.AttachmentProvider attachmentProvider)
Attaches the given agent library on the target process which must be a virtual machine process.
|
static Instrumentation |
ByteBuddyAgent.install(ByteBuddyAgent.AttachmentProvider attachmentProvider,
ByteBuddyAgent.ProcessProvider processProvider)
Installs an agent on the currently running Java virtual machine using the supplied
attachment provider and process provider.
|
static Instrumentation |
ByteBuddyAgent.install(ByteBuddyAgent.ProcessProvider processProvider)
Installs an agent on the Java virtual machine resolved by the process provider.
|
Copyright © 2014–2022. All rights reserved.