Class ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment

    • Field Detail

      • classPath

        private final java.util.List<java.io.File> classPath
        The class path required for loading the virtual machine type.
    • 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 - The com.sun.tools.attach.VirtualMachine class.
        classPath - The class path required for loading the virtual machine type.
    • Method Detail

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