org.springframework.instrument

Class InstrumentationSavingAgent

  • java.lang.Object
    • org.springframework.instrument.InstrumentationSavingAgent


  • public final class InstrumentationSavingAgent
    extends java.lang.Object
    Java agent that saves the Instrumentation interface from the JVM for later use.
    Since:
    2.0
    Author:
    Rod Johnson, Juergen Hoeller
    See Also:
    InstrumentationLoadTimeWeaver
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
      Save the Instrumentation interface exposed by the JVM.
      static java.lang.instrument.Instrumentation getInstrumentation()
      Return the Instrumentation interface exposed by the JVM.
      static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
      Save the Instrumentation interface exposed by the JVM.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • premain

        public static void premain(java.lang.String agentArgs,
                                   java.lang.instrument.Instrumentation inst)
        Save the Instrumentation interface exposed by the JVM.
      • agentmain

        public static void agentmain(java.lang.String agentArgs,
                                     java.lang.instrument.Instrumentation inst)
        Save the Instrumentation interface exposed by the JVM. This method is required to dynamically load this Agent with the Attach API.