protected static class ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment extends ByteBuddyAgent.AttachmentProvider.Accessor.Simple
ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
virtualMachineType
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9
Constructor and Description |
---|
WithExternalAttachment(Class<?> virtualMachineType,
List<File> classPath)
Creates a new simple accessor that allows for external attachment.
|
Modifier and Type | Method and Description |
---|---|
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment |
getExternalAttachment()
Returns a description of a virtual machine class for an external attachment.
|
boolean |
isExternalAttachmentRequired()
Returns
true if this accessor prohibits attachment to the same virtual machine in Java 9 and later. |
getVirtualMachineType, isAvailable, of, ofJ9
public WithExternalAttachment(Class<?> virtualMachineType, List<File> classPath)
virtualMachineType
- The com.sun.tools.attach.VirtualMachine
class.classPath
- The class path required for loading the virtual machine type.public 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.public ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment getExternalAttachment()
Copyright © 2014–2023. All rights reserved.