类 InstrumentationSavingAgent
java.lang.Object
cn.taketoday.instrument.InstrumentationSavingAgent
Java agent that saves the
Instrumentation interface from the JVM
for later use.- 从以下版本开始:
- 4.0 2022/3/17 20:54
- 作者:
- Rod Johnson, Juergen Hoeller, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidagentmain(String agentArgs, Instrumentation inst) Save theInstrumentationinterface exposed by the JVM.static InstrumentationReturn theInstrumentationinterface exposed by the JVM.static voidpremain(String agentArgs, Instrumentation inst) Save theInstrumentationinterface exposed by the JVM.
-
字段详细资料
-
instrumentation
-
-
构造器详细资料
-
InstrumentationSavingAgent
private InstrumentationSavingAgent()
-
-
方法详细资料
-
premain
Save theInstrumentationinterface exposed by the JVM. -
agentmain
Save theInstrumentationinterface exposed by the JVM. This method is required to dynamically load this Agent with the Attach API. -
getInstrumentation
Return theInstrumentationinterface 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
cn.taketoday.instrument.classloading.InstrumentationLoadTimeWeaver#getInstrumentation()instead - which will work without the agent class in the classpath as well.- 返回:
- the
Instrumentationinstance previously saved when thepremain(java.lang.String, java.lang.instrument.Instrumentation)oragentmain(java.lang.String, java.lang.instrument.Instrumentation)methods was called by the JVM; will benullif this class was not used as Java agent when this JVM was started or it wasn't installed as agent using the Attach API. - 另请参阅:
-
cn.taketoday.instrument.classloading.InstrumentationLoadTimeWeaver#getInstrumentation()
-