public class InstrumentationFactory extends Object
Instrumentation
instance.Constructor and Description |
---|
InstrumentationFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2006–2019 Apache Software Foundation. All rights reserved.