org.springframework.instrument
Class InstrumentationSavingAgent
java.lang.Object
   org.springframework.instrument.InstrumentationSavingAgent
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, Juergen Hoeller
- See Also:
- InstrumentationLoadTimeWeaver
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
InstrumentationSavingAgent
public InstrumentationSavingAgent()
premain
public static void premain(String agentArgs,
                           Instrumentation inst)
- Save the Instrumentationinterface exposed by the JVM.
 
- 
 
getInstrumentation
public static Instrumentation getInstrumentation()
- Return the Instrumentationinterface exposed by the JVM.Note that this agent class will typically not be available in the classpath
 unless the agent is actually specified on JVM startup. If you intend to do
 conditional checking with respect to agent availability, consider using
 InstrumentationLoadTimeWeaver.getInstrumentation()instead - which will work without the agent class in the classpath as well.
 
 
- 
- Returns:
- the Instrumentationinstance previously saved when
 thepremain(java.lang.String, java.lang.instrument.Instrumentation)method was called by the JVM; will benullif this class was not used as Java agent when this JVM was started.
- See Also:
- InstrumentationLoadTimeWeaver.getInstrumentation()
 
Copyright © 2002-2008 The Spring Framework.