public final class POPJavaAgent
extends java.lang.Object
implements java.lang.instrument.ClassFileTransformer
| Modifier and Type | Method and Description |
|---|---|
void |
addJar(java.lang.String file) |
static POPJavaAgent |
getInstance() |
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
This method is called by the JVM before the main method is loaded.
|
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
public static POPJavaAgent getInstance()
public static void premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
agentArgs - arguments for the java agentinst - the instrumentationpublic void addJar(java.lang.String file)
throws javassist.NotFoundException
javassist.NotFoundExceptionpublic byte[] transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer)
transform in interface java.lang.instrument.ClassFileTransformer