Package net.bytebuddy.agent
Interface ByteBuddyAgent.AttachmentProvider
-
- All Known Implementing Classes:
ByteBuddyAgent.AttachmentProvider.Compound
,ByteBuddyAgent.AttachmentProvider.ForEmulatedAttachment
,ByteBuddyAgent.AttachmentProvider.ForJ9Vm
,ByteBuddyAgent.AttachmentProvider.ForModularizedVm
,ByteBuddyAgent.AttachmentProvider.ForStandardToolsJarVm
,ByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJar
- Enclosing class:
- ByteBuddyAgent
public static interface ByteBuddyAgent.AttachmentProvider
An attachment provider is responsible for making the Java attachment API available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ByteBuddyAgent.AttachmentProvider.Accessor
An accessor for a JVM's attachment API.static class
ByteBuddyAgent.AttachmentProvider.Compound
A compound attachment provider that attempts the attachment by delegation to other providers.static class
ByteBuddyAgent.AttachmentProvider.ForEmulatedAttachment
An attachment provider that uses Byte Buddy's attachment API emulation.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 thejdk.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 atools.jar
from a custom location set via a system property.
-
Field Summary
Fields Modifier and Type Field Description static ByteBuddyAgent.AttachmentProvider
DEFAULT
The default attachment provider to be used.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuddyAgent.AttachmentProvider.Accessor
attempt()
Attempts the creation of an accessor for a specific JVM's attachment API.
-
-
-
Field Detail
-
DEFAULT
static final ByteBuddyAgent.AttachmentProvider DEFAULT
The default attachment provider to be used.
-
-
Method Detail
-
attempt
ByteBuddyAgent.AttachmentProvider.Accessor attempt()
Attempts the creation of an accessor for a specific JVM's attachment API.- Returns:
- The accessor this attachment provider can supply for the currently running JVM.
-
-