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 Classes Modifier and Type Interface Description static class
ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
An attachment type evaluator that never requires external attachment.static class
ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm
An attachment type evaluator that checks a process id against the current process id.static class
ByteBuddyAgent.AttachmentTypeEvaluator.InstallationAction
An installation action for creating an attachment type evaluator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
requiresExternalAttachment(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:
true
if the current VM requires external attachment for the supplied process.
-
-