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 enum
An attachment type evaluator that never requires external attachment.static class
An attachment type evaluator that checks a process id against the current process id.static enum
An installation action for creating an attachment type evaluator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
requiresExternalAttachment
(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:
true
if the current VM requires external attachment for the supplied process.
-