Interface ByteBuddyAgent.AttachmentProvider.Accessor

    • Field Detail

      • VIRTUAL_MACHINE_TYPE_NAME

        static final java.lang.String VIRTUAL_MACHINE_TYPE_NAME
        The name of the VirtualMachine class on any OpenJDK or Oracle JDK implementation.
        See Also:
        Constant Field Values
      • VIRTUAL_MACHINE_TYPE_NAME_J9

        static final java.lang.String VIRTUAL_MACHINE_TYPE_NAME_J9
        The name of the VirtualMachine class on IBM J9 VMs.
        See Also:
        Constant Field Values
    • Method Detail

      • isAvailable

        boolean isAvailable()
        Determines if this accessor is applicable for the currently running JVM.
        Returns:
        true if this accessor is available.
      • isExternalAttachmentRequired

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

        java.lang.Class<?> getVirtualMachineType()
        Returns a VirtualMachine class. This method must only be called for available accessors.
        Returns:
        The virtual machine type.