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 ClassesModifier and TypeInterfaceDescriptionstatic interface
An accessor for a JVM's attachment API.static class
A compound attachment provider that attempts the attachment by delegation to other providers.static enum
An attachment provider that uses Byte Buddy's attachment API emulation.static enum
An attachment provider that locates the attach API directly from the system class loader expecting an IBM J9 VM.static enum
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 enum
An attachment provider that is dependant on the existence of a tools.jar file on the local file system.static enum
An attachment provider that attempts to locate atools.jar
from a custom location set via a system property. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteBuddyAgent.AttachmentProvider
The default attachment provider to be used. -
Method Summary
Modifier and TypeMethodDescriptionattempt()
Attempts the creation of an accessor for a specific JVM's attachment API.
-
Field Details
-
DEFAULT
The default attachment provider to be used.
-
-
Method Details
-
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.
-