public static class ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm extends java.lang.Object implements ByteBuddyAgent.AttachmentTypeEvaluator
ByteBuddyAgent.AttachmentTypeEvaluator.Disabled, ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm, ByteBuddyAgent.AttachmentTypeEvaluator.InstallationAction
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
current
The
java.lang.ProcessHandle#current() method. |
private java.lang.reflect.Method |
pid
The
java.lang.ProcessHandle#pid() method. |
Modifier | Constructor and Description |
---|---|
protected |
ForJava9CapableVm(java.lang.reflect.Method current,
java.lang.reflect.Method pid)
Creates a new attachment type evaluator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
requiresExternalAttachment(java.lang.String processId)
Checks if the current VM requires external attachment for the supplied process id.
|
private final java.lang.reflect.Method current
java.lang.ProcessHandle#current()
method.private final java.lang.reflect.Method pid
java.lang.ProcessHandle#pid()
method.protected ForJava9CapableVm(java.lang.reflect.Method current, java.lang.reflect.Method pid)
current
- The java.lang.ProcessHandle#current()
method.pid
- The java.lang.ProcessHandle#pid()
method.public boolean requiresExternalAttachment(java.lang.String processId)
requiresExternalAttachment
in interface ByteBuddyAgent.AttachmentTypeEvaluator
processId
- The process id of the process to which to attach.true
if the current VM requires external attachment for the supplied process.