Package net.bytebuddy.agent
Class VirtualMachine.AbstractBase
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.AbstractBase
-
- All Implemented Interfaces:
VirtualMachine
- Direct Known Subclasses:
VirtualMachine.ForHotSpot,VirtualMachine.ForOpenJ9
- Enclosing interface:
- VirtualMachine
public abstract static class VirtualMachine.AbstractBase extends java.lang.Object implements 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.ForOpenJ9, VirtualMachine.Resolver
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadAgent(java.lang.String jarFile)Loads an agent into the represented virtual machine.voidloadAgentLibrary(java.lang.String library)Loads a native agent library into the represented virtual machine.voidloadAgentPath(java.lang.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
-
-
-
-
Method Detail
-
loadAgent
public void loadAgent(java.lang.String jarFile) throws java.io.IOExceptionLoads an agent into the represented virtual machine.- Specified by:
loadAgentin interfaceVirtualMachine- Parameters:
jarFile- The jar file to attach.- Throws:
java.io.IOException- If an I/O exception occurs.
-
loadAgentPath
public void loadAgentPath(java.lang.String path) throws java.io.IOExceptionLoads a native agent into the represented virtual machine.- Specified by:
loadAgentPathin interfaceVirtualMachine- Parameters:
path- The agent path.- Throws:
java.io.IOException- If an I/O exception occurs.
-
loadAgentLibrary
public void loadAgentLibrary(java.lang.String library) throws java.io.IOExceptionLoads a native agent library into the represented virtual machine.- Specified by:
loadAgentLibraryin interfaceVirtualMachine- Parameters:
library- The agent library.- Throws:
java.io.IOException- If an I/O exception occurs.
-
-