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.AttachmentProviderAn attachment provider is responsible for making the Java attachment API available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceByteBuddyAgent.AttachmentProvider.AccessorAn accessor for a JVM's attachment API.static classByteBuddyAgent.AttachmentProvider.CompoundA compound attachment provider that attempts the attachment by delegation to other providers.static classByteBuddyAgent.AttachmentProvider.ForEmulatedAttachmentAn attachment provider that uses Byte Buddy's attachment API emulation.static classByteBuddyAgent.AttachmentProvider.ForJ9VmAn attachment provider that locates the attach API directly from the system class loader expecting an IBM J9 VM.static classByteBuddyAgent.AttachmentProvider.ForModularizedVmAn attachment provider that locates the attach API directly from the system class loader, as possible since introducing the Java module system via thejdk.attachmodule.static classByteBuddyAgent.AttachmentProvider.ForStandardToolsJarVmAn attachment provider that is dependant on the existence of a tools.jar file on the local file system.static classByteBuddyAgent.AttachmentProvider.ForUserDefinedToolsJarAn attachment provider that attempts to locate atools.jarfrom a custom location set via a system property.
-
Field Summary
Fields Modifier and Type Field Description static ByteBuddyAgent.AttachmentProviderDEFAULTThe default attachment provider to be used.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuddyAgent.AttachmentProvider.Accessorattempt()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.
-
-