|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.util.jpa.agent.Agent
public class Agent
An agent, which exposes the Instrumentation interface to the public.
Activate this agent using the arguments
java -javaagent:jpa-util-agent-0.1.0.jar=<key> -cp <classpath> foo.Mainwhen starting your container, wher key is a string with at least 6 characters.
Constructor Summary | |
---|---|
Agent()
|
Method Summary | |
---|---|
static void |
agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
Register an instrumentation instance under the given key after calling the main method. |
static java.lang.instrument.Instrumentation |
getInstrumentation(java.lang.String key)
Get the instrumentation registered at boot time. |
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
Register an instrumentation instance under the given key before calling the main method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Agent()
Method Detail |
---|
public static final java.lang.instrument.Instrumentation getInstrumentation(java.lang.String key)
key
- The key as specified by the argument to
-javaagent
JRE option.
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
agentArgs
- The key as specified by the argument to the
-javaagent
JRE option.inst
- The instrumentation instance.public static void agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
agentArgs
- The key as specified by the argument to javaagent
inst
- The instrumentation instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |