Package net.bytebuddy.agent
Class VirtualMachine.AbstractBase
java.lang.Object
net.bytebuddy.agent.VirtualMachine.AbstractBase
- All Implemented Interfaces:
VirtualMachine
- Direct Known Subclasses:
VirtualMachine.ForHotSpot
- Enclosing interface:
VirtualMachine
An abstract base implementation for a virtual machine.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.VirtualMachine
VirtualMachine.AbstractBase, VirtualMachine.ForHotSpot, VirtualMachine.Resolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Loads an agent into the represented virtual machine.void
loadAgentLibrary
(String library) Loads a native agent library into the represented virtual machine.void
loadAgentPath
(String path) Loads a native agent into the represented virtual machine.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bytebuddy.agent.VirtualMachine
detach, getAgentProperties, getSystemProperties, loadAgent, loadAgentLibrary, loadAgentPath, startLocalManagementAgent, startManagementAgent
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
loadAgent
Loads an agent into the represented virtual machine.- Specified by:
loadAgent
in interfaceVirtualMachine
- Parameters:
jarFile
- The jar file to attach.- Throws:
IOException
- If an I/O exception occurs.
-
loadAgentPath
Loads a native agent into the represented virtual machine.- Specified by:
loadAgentPath
in interfaceVirtualMachine
- Parameters:
path
- The agent path.- Throws:
IOException
- If an I/O exception occurs.
-
loadAgentLibrary
Loads a native agent library into the represented virtual machine.- Specified by:
loadAgentLibrary
in interfaceVirtualMachine
- Parameters:
library
- The agent library.- Throws:
IOException
- If an I/O exception occurs.
-