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 java.lang.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForJava9CapableVm(java.lang.reflect.Method current, java.lang.reflect.Method pid)
Creates a new attachment type evaluator.
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean requiresExternalAttachment(java.lang.String processId)
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.
-
-