public class InstrumentationFactory
extends java.lang.Object
Instrumentation
instance.Constructor and Description |
---|
InstrumentationFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
The method that is called when a jar is added as an agent at runtime.
|
static java.lang.instrument.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(java.lang.instrument.Instrumentation inst)
This method is not synchronized because when the agent is loaded from
getInstrumentation() that method will cause agentmain(..) to be called.
|
public static void setInstrumentation(java.lang.instrument.Instrumentation inst)
inst
- The instrumentation instance to be used by this factory.public static void setDynamicallyInstallAgent(boolean val)
true
.public static java.lang.instrument.Instrumentation getInstrumentation(Log log)
log
- OpenJPA log.public static void agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
Instrumentation
for
later use.Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.