public final class InstrumentationSavingAgent extends ObjectSE
InstrumentationSE インターフェースを保存する Java エージェント。InstrumentationLoadTimeWeaver| 修飾子と型 | メソッドと説明 |
|---|---|
static void | agentmain(StringSE agentArgs, InstrumentationSE inst)JVM によって公開された InstrumentationSE インターフェースを保存します。 |
static InstrumentationSE | getInstrumentation()JVM によって公開されている InstrumentationSE インターフェースを返します。 |
static void | premain(StringSE agentArgs, InstrumentationSE inst)JVM によって公開された InstrumentationSE インターフェースを保存します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static void premain(StringSE agentArgs, InstrumentationSE inst)
InstrumentationSE インターフェースを保存します。public static void agentmain(StringSE agentArgs, InstrumentationSE inst)
InstrumentationSE インターフェースを保存します。このメソッドは、Attach API でこのエージェントを動的にロードするために必要です。public static InstrumentationSE getInstrumentation()
InstrumentationSE インターフェースを返します。 このエージェントクラスは、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()