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 TypeMethodDescriptionvoidLoads an agent into the represented virtual machine.voidloadAgentLibrary(String library) Loads a native agent library into the represented virtual machine.voidloadAgentPath(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, waitMethods 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:
loadAgentin 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:
loadAgentPathin 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:
loadAgentLibraryin interfaceVirtualMachine- Parameters:
library- The agent library.- Throws:
IOException- If an I/O exception occurs.
-