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.
  • Field Details

    • classPath

      private final List<File> classPath
      The class path required for loading the virtual machine type.
  • Constructor Details

    • WithExternalAttachment

      public WithExternalAttachment(Class<?> virtualMachineType, List<File> classPath)
      Creates a new simple accessor that allows for external attachment.
      Parameters:
      virtualMachineType - The com.sun.tools.attach.VirtualMachine class.
      classPath - The class path required for loading the virtual machine type.
  • Method Details

    • isExternalAttachmentRequired

      public boolean isExternalAttachmentRequired()
      Returns true 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

      Returns a description of a virtual machine class for an external attachment.
      Returns:
      A description of the external attachment.