Package net.bytebuddy.agent
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn attachment type evaluator that never requires external attachment.static classAn attachment type evaluator that checks a process id against the current process id.static enumAn installation action for creating an attachment type evaluator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanrequiresExternalAttachment(String processId) Checks if the current VM requires external attachment for the supplied process id.
-
Method Details
-
requiresExternalAttachment
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:
trueif the current VM requires external attachment for the supplied process.
-