Class ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment
java.lang.Object
net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple
net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment
- All Implemented Interfaces:
ByteBuddyAgent.AttachmentProvider.Accessor
- Enclosing class:
ByteBuddyAgent.AttachmentProvider.Accessor.Simple
protected static class ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment
extends ByteBuddyAgent.AttachmentProvider.Accessor.Simple
A simple implementation of an accessible accessor that attaches using a virtual machine emulation that does not require external attachment.
-
Nested Class Summary
Nested classes/interfaces inherited from class ByteBuddyAgent.AttachmentProvider.Accessor.Simple
ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachmentNested classes/interfaces inherited from interface ByteBuddyAgent.AttachmentProvider.Accessor
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable -
Field Summary
Fields inherited from class ByteBuddyAgent.AttachmentProvider.Accessor.Simple
virtualMachineTypeFields inherited from interface ByteBuddyAgent.AttachmentProvider.Accessor
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9 -
Constructor Summary
ConstructorsConstructorDescriptionWithDirectAttachment(Class<?> virtualMachineType) Creates a new simple accessor that implements direct attachment. -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of a virtual machine class for an external attachment.booleanReturnstrueif this accessor prohibits attachment to the same virtual machine in Java 9 and later.Methods inherited from class ByteBuddyAgent.AttachmentProvider.Accessor.Simple
getVirtualMachineType, isAvailable, of, ofJ9
-
Constructor Details
-
WithDirectAttachment
Creates a new simple accessor that implements direct attachment.- Parameters:
virtualMachineType- AVirtualMachineclass.
-
-
Method Details
-
isExternalAttachmentRequired
public boolean isExternalAttachmentRequired()Returnstrueif this accessor prohibits attachment to the same virtual machine in Java 9 and later.- Returns:
trueif this accessor prohibits attachment to the same virtual machine in Java 9 and later.
-
getExternalAttachment
Returns a description of a virtual machine class for an external attachment.- Returns:
- A description of the external attachment.
-