The Spring Framework

org.springframework.instrument
Class InstrumentationSavingAgent

java.lang.Object
  extended by org.springframework.instrument.InstrumentationSavingAgent

public class InstrumentationSavingAgent
extends Object

Java agent that saves the Instrumentation interface from the JVM for later use.

Since:
2.0
Author:
Rod Johnson
See Also:
InstrumentationLoadTimeWeaver

Constructor Summary
InstrumentationSavingAgent()
           
 
Method Summary
static Instrumentation getInstrumentation()
          Return the Instrumentation interface exposed by the JVM.
static void premain(String agentArgs, 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
 

Constructor Detail

InstrumentationSavingAgent

public InstrumentationSavingAgent()
Method Detail

premain

public static void premain(String agentArgs,
                           Instrumentation inst)
Save the Instrumentation interface exposed by the JVM.


getInstrumentation

public static Instrumentation getInstrumentation()
Return the Instrumentation interface exposed by the JVM.

Returns:
the Instrumentation instance previously saved when the premain(java.lang.String, java.lang.instrument.Instrumentation) method was called by the JVM; will be null if this class was not used as Java agent when this JVM was started.

The Spring Framework

Copyright © 2002-2007 The Spring Framework.