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 String |
VIRTUAL_MACHINE_TYPE_NAME
The name of the
VirtualMachine class on any OpenJDK or Oracle JDK implementation. |
static 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.
|
Class<?> |
getVirtualMachineType()
Returns a
VirtualMachine class. |
boolean |
isAvailable()
Determines if this accessor is applicable for the currently running JVM.
|
boolean |
isExternalAttachmentRequired()
Returns
true if this accessor prohibits attachment to the same virtual machine in Java 9 and later. |
static final String VIRTUAL_MACHINE_TYPE_NAME
VirtualMachine
class on any OpenJDK or Oracle JDK implementation.static final String VIRTUAL_MACHINE_TYPE_NAME_J9
VirtualMachine
class on IBM J9 VMs.boolean isAvailable()
true
if this accessor is available.boolean isExternalAttachmentRequired()
true
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.true
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.Class<?> getVirtualMachineType()
VirtualMachine
class. This method must only be called for available accessors.ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment getExternalAttachment()
Copyright © 2014–2021. All rights reserved.