public static interface ByteBuddyAgent.AttachmentProvider.Accessor
Modifier and Type | Interface and Description |
---|---|
static class |
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment
Describes an external attachment to a Java virtual machine.
|
static class |
ByteBuddyAgent.AttachmentProvider.Accessor.Simple
A simple implementation of an accessible accessor.
|
static class |
ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
A canonical implementation of an unavailable accessor.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VIRTUAL_MACHINE_TYPE_NAME
The name of the
VirtualMachine class on any OpenJDK or Oracle JDK implementation. |
static java.lang.String |
VIRTUAL_MACHINE_TYPE_NAME_J9
The name of the
VirtualMachine class on IBM J9 VMs. |
Modifier and Type | Method and Description |
---|---|
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment |
getExternalAttachment()
Returns a description of a virtual machine class for an external attachment.
|
java.lang.Class<?> |
getVirtualMachineType()
Returns a
VirtualMachine class. |
boolean |
isAvailable()
Determines if this accessor is applicable for the currently running JVM.
|
static final java.lang.String VIRTUAL_MACHINE_TYPE_NAME
VirtualMachine
class on any OpenJDK or Oracle JDK implementation.static final java.lang.String VIRTUAL_MACHINE_TYPE_NAME_J9
VirtualMachine
class on IBM J9 VMs.boolean isAvailable()
true
if this accessor is available.java.lang.Class<?> getVirtualMachineType()
VirtualMachine
class. This method must only be called for available accessors.ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment getExternalAttachment()