Class AgentManager

java.lang.Object
com.avrix.agent.AgentManager

public class AgentManager extends Object
A class for managing agents designed to modify classes at runtime.
  • Constructor Details

    • AgentManager

      public AgentManager()
  • Method Details

    • getModifyClass

      public static byte[] getModifyClass(String className)
      Method for getting a modified class by its name.
      Parameters:
      className - Class name
      Returns:
      Modified class as a byte array
    • transformClass

      public static void transformClass(String className, byte[] newClass)
      Transforming a class by its name using a new class as a byte array.
      Parameters:
      className - Name of the class to modify
      newClass - Modified class file as a byte array