org.broadleafcommerce.instrument
Class BroadleafInstrumentationSavingAgent

java.lang.Object
  extended by org.broadleafcommerce.instrument.BroadleafInstrumentationSavingAgent

public class BroadleafInstrumentationSavingAgent
extends Object

Based on org.springframework.instrument.InstrumentationSavingAgent from Spring 3.0.5 by Rod Johnson and Juergen Hoeller

Author:
jfischer

Constructor Summary
BroadleafInstrumentationSavingAgent()
           
 
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

BroadleafInstrumentationSavingAgent

public BroadleafInstrumentationSavingAgent()
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.

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 org.broadleafcommerce.profile.extensibility.jpa.convert.BroadleafLoadTimeWeaver#getInstrumentation() instead - which will work without the agent class in the classpath as well.

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.
See Also:
org.broadleafcommerce.profile.extensibility.jpa.convert.BroadleafLoadTimeWeaver#getInstrumentation()


Copyright © 2011. All Rights Reserved.