Package net.bytebuddy.agent
Class ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment
- java.lang.Object
-
- net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple
-
- net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment
-
- All Implemented Interfaces:
ByteBuddyAgent.AttachmentProvider.Accessor
- Enclosing class:
- ByteBuddyAgent.AttachmentProvider.Accessor.Simple
protected static class ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment extends ByteBuddyAgent.AttachmentProvider.Accessor.Simple
A simple implementation of an accessible accessor that allows for external attachment.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple
ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.io.File>
classPath
The class path required for loading the virtual machine type.-
Fields inherited from class net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple
virtualMachineType
-
Fields inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9
-
-
Constructor Summary
Constructors Constructor Description WithExternalAttachment(java.lang.Class<?> virtualMachineType, java.util.List<java.io.File> classPath)
Creates a new simple accessor that allows for external attachment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment
getExternalAttachment()
Returns a description of a virtual machine class for an external attachment.boolean
isExternalAttachmentRequired()
Returnstrue
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.-
Methods inherited from class net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple
getVirtualMachineType, isAvailable, of, ofJ9
-
-
-
-
Constructor Detail
-
WithExternalAttachment
public WithExternalAttachment(java.lang.Class<?> virtualMachineType, java.util.List<java.io.File> classPath)
Creates a new simple accessor that allows for external attachment.- Parameters:
virtualMachineType
- Thecom.sun.tools.attach.VirtualMachine
class.classPath
- The class path required for loading the virtual machine type.
-
-
Method Detail
-
isExternalAttachmentRequired
public boolean isExternalAttachmentRequired()
Returnstrue
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.- Returns:
true
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.
-
getExternalAttachment
public ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment getExternalAttachment()
Returns a description of a virtual machine class for an external attachment.- Returns:
- A description of the external attachment.
-
-