Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » enhance » [javadoc | source]
org.apache.openjpa.enhance
public class: InstrumentationFactory [javadoc | source]
java.lang.Object
   org.apache.openjpa.enhance.InstrumentationFactory
Factory for obtaining an Instrumentation instance.
Method from org.apache.openjpa.enhance.InstrumentationFactory Summary:
agentmain,   getInstrumentation,   setDynamicallyInstallAgent,   setInstrumentation
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.enhance.InstrumentationFactory Detail:
 public static  void agentmain(String agentArgs,
    Instrumentation inst) 
    The method that is called when a jar is added as an agent at runtime. All this method does is store the Instrumentation for later use.
 public static synchronized Instrumentation getInstrumentation() throws ClassNotFoundException, InvocationTargetException, IOException, NoSuchMethodException, IllegalAccessException 
 public static synchronized  void setDynamicallyInstallAgent(boolean val) 
    Configures whether or not this instance should attempt to dynamically install an agent in the VM. Defaults to true.
 public static  void setInstrumentation(Instrumentation inst)