Package net.bytebuddy.agent
The Byte Buddy agent allows the redefinition of classes at runtime.
-
Interface Summary Interface Description ByteBuddyAgent.AgentProvider An agent provider is responsible for handling and providing the jar file of an agent that is being attached.ByteBuddyAgent.AttachmentProvider An attachment provider is responsible for making the Java attachment API available.ByteBuddyAgent.AttachmentProvider.Accessor An accessor for a JVM's attachment API.ByteBuddyAgent.AttachmentTypeEvaluator An attachment evaluator is responsible for deciding if an agent can be attached from the current process.ByteBuddyAgent.ProcessProvider A process provider is responsible for providing the process id of the current VM.VirtualMachine An implementation for attachment on a virtual machine.VirtualMachine.ForHotSpot.Connection Represents a connection to a virtual machine.VirtualMachine.ForHotSpot.Connection.Factory A factory for creating connections to virtual machines.VirtualMachine.ForHotSpot.Connection.Response A response to an execution command to a VM.VirtualMachine.ForOpenJ9.Dispatcher A dispatcher for native operations being used for communication with an OpenJ9 virtual machine. -
Class Summary Class Description Attacher A Java program that attaches a Java agent to an external process.ByteBuddyAgent The Byte Buddy agent provides a JVMInstrumentation
in order to allow Byte Buddy the redefinition of already loaded classes.ByteBuddyAgent.AgentProvider.ForExistingAgent An agent provider that supplies an existing agent that is not deleted after attachment.ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment Describes an external attachment to a Java virtual machine.ByteBuddyAgent.AttachmentProvider.Accessor.Simple A simple implementation of an accessible accessor.ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment A simple implementation of an accessible accessor that attaches using a virtual machine emulation that does not require external attachment.ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment A simple implementation of an accessible accessor that allows for external attachment.ByteBuddyAgent.AttachmentProvider.Compound A compound attachment provider that attempts the attachment by delegation to other providers.ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm An attachment type evaluator that checks a process id against the current process id.ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForJava9CapableVm A process provider for a Java 9 capable VM with access to the introduced process API.Installer An installer class which defined the hook-in methods that are required by the Java agent specification.VirtualMachine.AbstractBase An abstract base implementation for a virtual machine.VirtualMachine.ForHotSpot A virtual machine attachment implementation for a HotSpot VM or any compatible JVM.VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile A factory for attaching via a socket file.VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel<T> A connection that is represented by a byte channel that is persistent during communication.VirtualMachine.ForOpenJ9 A virtual machine attachment implementation for OpenJ9 or any compatible JVM. -
Enum Summary Enum Description ByteBuddyAgent.AgentProvider.ForByteBuddyAgent An agent provider for a temporary Byte Buddy agent.ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable A canonical implementation of an unavailable accessor.ByteBuddyAgent.AttachmentProvider.ForEmulatedAttachment An attachment provider that uses Byte Buddy's attachment API emulation.ByteBuddyAgent.AttachmentProvider.ForJ9Vm An attachment provider that locates the attach API directly from the system class loader expecting an IBM J9 VM.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 thejdk.attach
module.ByteBuddyAgent.AttachmentProvider.ForStandardToolsJarVm An attachment provider that is dependant on the existence of a tools.jar file on the local file system.ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar An attachment provider that attempts to locate atools.jar
from a custom location set via a system property.ByteBuddyAgent.AttachmentTypeEvaluator.Disabled An attachment type evaluator that never requires external attachment.ByteBuddyAgent.AttachmentTypeEvaluator.InstallationAction An installation action for creating an attachment type evaluator.ByteBuddyAgent.ProcessProvider.ForCurrentVm Supplies the current VM's process id.ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm A process provider for a legacy VM that reads the process id from its JMX properties.VirtualMachine.Resolver A resolver for the current VM's virtual machine attachment emulation.