Package net.bytebuddy.agent
Class ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm
java.lang.Object
net.bytebuddy.agent.ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm
- All Implemented Interfaces:
ByteBuddyAgent.AttachmentTypeEvaluator
- Enclosing interface:
ByteBuddyAgent.AttachmentTypeEvaluator
public static class ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm
extends Object
implements ByteBuddyAgent.AttachmentTypeEvaluator
An attachment type evaluator that checks a process id against the current process id.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AttachmentTypeEvaluator
ByteBuddyAgent.AttachmentTypeEvaluator.Disabled, ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm, ByteBuddyAgent.AttachmentTypeEvaluator.InstallationAction
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForJava9CapableVm
(Method current, Method pid) Creates a new attachment type evaluator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
requiresExternalAttachment
(String processId) Checks if the current VM requires external attachment for the supplied process id.
-
Field Details
-
current
Thejava.lang.ProcessHandle#current()
method. -
pid
Thejava.lang.ProcessHandle#pid()
method.
-
-
Constructor Details
-
ForJava9CapableVm
Creates a new attachment type evaluator.- Parameters:
current
- Thejava.lang.ProcessHandle#current()
method.pid
- Thejava.lang.ProcessHandle#pid()
method.
-
-
Method Details
-
requiresExternalAttachment
Checks if the current VM requires external attachment for the supplied process id.- Specified by:
requiresExternalAttachment
in interfaceByteBuddyAgent.AttachmentTypeEvaluator
- 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.
-