public class UpdaterAgent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.Integer,java.lang.String> |
instrumentables
The classes that are instrumentable
|
Constructor and Description |
---|
UpdaterAgent() |
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst) |
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
This method is call before main method, when the agent is pointed to the JVM
|
static void |
run(java.lang.String sourceMethodName,
java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
The function of this method is initialize the transformers that will process
the classes to update them.
|
static void |
updateClass(java.lang.Class<?>... clazz)
This method dispatches the class received to the instrumentor in order to
re-transform it in run time.
|
public static java.util.Map<java.lang.Integer,java.lang.String> instrumentables
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
public static void agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
public static void run(java.lang.String sourceMethodName, java.lang.String agentArgs, java.lang.instrument.Instrumentation inst) throws StructuralIntercessionException
sourceMethodName
- Unused in this versionagentArgs
- Unused in this versioninst
- Instrumentation dataStructuralIntercessionException
- If a problem occurs initializing the Agentpublic static void updateClass(java.lang.Class<?>... clazz)
clazz
- The classes to re-transform