Package com.avrix.agent
Class AgentManager
java.lang.Object
com.avrix.agent.AgentManager
A class for managing agents designed to modify classes at runtime.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getModifyClass
(String className) Method for getting a modified class by its name.static void
transformClass
(String className, byte[] newClass) Transforming a class by its name using a new class as a byte array.
-
Constructor Details
-
AgentManager
public AgentManager()
-
-
Method Details
-
getModifyClass
Method for getting a modified class by its name.- Parameters:
className
- Class name- Returns:
- Modified class as a byte array
-
transformClass
Transforming a class by its name using a new class as a byte array.- Parameters:
className
- Name of the class to modifynewClass
- Modified class file as a byte array
-