public final class InstrumentationSavingAgent
extends java.lang.ObjectInstrumentation インターフェースを保存する Java エージェント。InstrumentationLoadTimeWeaver| 修飾子と型 | メソッドと説明 |
|---|---|
static void | agentmain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)JVM によって公開されている Instrumentation インターフェースを保存します。 |
static java.lang.instrument.Instrumentation | getInstrumentation()JVM によって公開されている Instrumentation インターフェースを返します。 |
static void | premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)JVM によって公開されている Instrumentation インターフェースを保存します。 |
public static void premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)Instrumentation インターフェースを保存します。public static void agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)Instrumentation インターフェースを保存します。このメソッドは、このエージェントに AttachAPI を動的にロードするために必要です。public static java.lang.instrument.Instrumentation getInstrumentation()
Instrumentation インターフェースを返します。 このエージェントクラスは、JVM の起動時に実際にエージェントが指定されていない限り、通常クラスパスで使用できないことに注意してください。エージェントの可用性に関して条件チェックを行う場合は、代わりに InstrumentationLoadTimeWeaver.getInstrumentation() の使用を検討してください。これは、クラスパスにエージェントクラスがなくても機能します。
premain(java.lang.String, java.lang.instrument.Instrumentation) または agentmain(java.lang.String, java.lang.instrument.Instrumentation) メソッドが JVM によって呼び出されたときに以前に保存された Instrumentation インスタンス。この JVM の起動時にこのクラスが Java エージェントとして使用されなかった場合、または Attach API を使用してエージェントとしてインストールされなかった場合、null になります。InstrumentationLoadTimeWeaver.getInstrumentation()