public class AgentLoader extends Object
| Constructor and Description |
|---|
AgentLoader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createAgentJar(File file,
Class<?> agentClass)
Create an agent jar file with the required manifest entries.
|
static void |
loadAgent(Class<?> agentClass)
Attempt to dynamically load the given agent class
|
public AgentLoader()
public static void createAgentJar(File file, Class<?> agentClass) throws IOException
file - the location to create the jaragentClass - the agent classIOException - if an error occurspublic static void loadAgent(Class<?> agentClass) throws IOException
agentClass - the agent classIOException - if an error occurs creating the agent jar