| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.enhance.InstrumentationFactory
public class InstrumentationFactory
Factory for obtaining an Instrumentation instance.
| Constructor Summary | |
|---|---|
| InstrumentationFactory() | |
| Method Summary | |
|---|---|
| static void | agentmain(String agentArgs,
          Instrumentation inst)The method that is called when a jar is added as an agent at runtime. | 
| static Instrumentation | getInstrumentation(Log log) | 
| static void | setDynamicallyInstallAgent(boolean val)Configures whether or not this instance should attempt to dynamically install an agent in the VM. | 
| static void | setInstrumentation(Instrumentation inst)This method is not synchronized because when the agent is loaded from getInstrumentation() that method will cause agentmain(..) to be called. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public InstrumentationFactory()
| Method Detail | 
|---|
public static void setInstrumentation(Instrumentation inst)
inst - The instrumentation instance to be used by this factory.public static void setDynamicallyInstallAgent(boolean val)
true.
public static Instrumentation getInstrumentation(Log log)
log - OpenJPA log.
public static void agentmain(String agentArgs,
                             Instrumentation inst)
Instrumentation for
  later use.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||