Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory
java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory
- All Implemented Interfaces:
VirtualMachine.ForHotSpot.Connection.Factory
- Enclosing class:
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
public static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory
extends Object
implements VirtualMachine.ForHotSpot.Connection.Factory
A factory for establishing a connection to a JVM using a named pipe in JNA.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe library to use for communicating with Windows attachment extension that is included as a DLL.The library to use for communicating with Windows native functions.static final String
The name of the native code library that is included in this artifact to support Windows attachment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConnects to the supplied process.
-
Field Details
-
LIBRARY_NAME
The name of the native code library that is included in this artifact to support Windows attachment. This property can be set by other libraries that shade Byte Buddy agent and relocates the library.- See Also:
-
library
The library to use for communicating with Windows native functions. -
attachLibrary
private final VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary attachLibraryThe library to use for communicating with Windows attachment extension that is included as a DLL.
-
-
Constructor Details
-
Factory
public Factory()Creates a new connection factory for Windows using JNA.
-
-
Method Details
-
connect
Connects to the supplied process.- Specified by:
connect
in interfaceVirtualMachine.ForHotSpot.Connection.Factory
- Parameters:
processId
- The process id.- Returns:
- The connection to the virtual machine with the supplied process id.
-