Class VirtualMachine.AbstractBase

java.lang.Object
net.bytebuddy.agent.VirtualMachine.AbstractBase
All Implemented Interfaces:
VirtualMachine
Direct Known Subclasses:
VirtualMachine.ForHotSpot
Enclosing interface:
VirtualMachine

public abstract static class VirtualMachine.AbstractBase extends Object implements VirtualMachine
An abstract base implementation for a virtual machine.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • loadAgent

      public void loadAgent(String jarFile) throws IOException
      Loads an agent into the represented virtual machine.
      Specified by:
      loadAgent in interface VirtualMachine
      Parameters:
      jarFile - The jar file to attach.
      Throws:
      IOException - If an I/O exception occurs.
    • loadAgentPath

      public void loadAgentPath(String path) throws IOException
      Loads a native agent into the represented virtual machine.
      Specified by:
      loadAgentPath in interface VirtualMachine
      Parameters:
      path - The agent path.
      Throws:
      IOException - If an I/O exception occurs.
    • loadAgentLibrary

      public void loadAgentLibrary(String library) throws IOException
      Loads a native agent library into the represented virtual machine.
      Specified by:
      loadAgentLibrary in interface VirtualMachine
      Parameters:
      library - The agent library.
      Throws:
      IOException - If an I/O exception occurs.