Interface ByteBuddyAgent.AttachmentTypeEvaluator

All Known Implementing Classes:
ByteBuddyAgent.AttachmentTypeEvaluator.Disabled, ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm
Enclosing class:
ByteBuddyAgent

protected static interface ByteBuddyAgent.AttachmentTypeEvaluator
An attachment evaluator is responsible for deciding if an agent can be attached from the current process.
  • Method Details

    • requiresExternalAttachment

      boolean requiresExternalAttachment(String processId)
      Checks if the current VM requires external attachment for the supplied process id.
      Parameters:
      processId - The process id of the process to which to attach.
      Returns:
      true if the current VM requires external attachment for the supplied process.