Package net.bytebuddy.agent
Interface ByteBuddyAgent.AttachmentTypeEvaluator
-
- All Known Implementing Classes:
ByteBuddyAgent.AttachmentTypeEvaluator.Disabled,ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm
- Enclosing class:
- ByteBuddyAgent
protected static interface ByteBuddyAgent.AttachmentTypeEvaluatorAn attachment evaluator is responsible for deciding if an agent can be attached from the current process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classByteBuddyAgent.AttachmentTypeEvaluator.DisabledAn attachment type evaluator that never requires external attachment.static classByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVmAn attachment type evaluator that checks a process id against the current process id.static classByteBuddyAgent.AttachmentTypeEvaluator.InstallationActionAn installation action for creating an attachment type evaluator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanrequiresExternalAttachment(java.lang.String processId)Checks if the current VM requires external attachment for the supplied process id.
-
-
-
Method Detail
-
requiresExternalAttachment
boolean requiresExternalAttachment(java.lang.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:
trueif the current VM requires external attachment for the supplied process.
-
-