public class Bootstrap
extends java.lang.Object
| Constructor and Description |
|---|
Bootstrap() |
| Modifier and Type | Method and Description |
|---|---|
static void |
agentmain(java.lang.String options,
java.lang.instrument.Instrumentation instrumentation)
used by dynamic attach
|
static java.lang.String |
findPathJar(java.lang.Class<?> context)
If the provided class has been loaded from a jar file that is on the local file system, will find the absolute path to that jar file.
|
static void |
premain(java.lang.String options,
java.lang.instrument.Instrumentation instrumentation)
used with -javaagent:
|
public static void premain(java.lang.String options,
java.lang.instrument.Instrumentation instrumentation)
options - instrumentation - public static void agentmain(java.lang.String options,
java.lang.instrument.Instrumentation instrumentation)
options - instrumentation - public static java.lang.String findPathJar(java.lang.Class<?> context)
throws java.lang.IllegalStateException
context - The jar file that contained the class file that represents this class will be found. Specify null to let Agent find its own jar.java.lang.IllegalStateException - If the specified class was loaded from a directory or in some other way (such as via HTTP, from a database, or some
other custom classloading device).