Package java.lang.instrument | |
This
package defines the API for instrumenting a Java VM by
transforming class files to add profiling support, code coverage
testing, or other features.
The -javaagent command-line option to the Java
interpreter provides a hook for running the premain(
) method of a Java instrumentation
agent. An Instrumentation
object passed to the premain( ) method provides an
entry point into this package, and methods of
Instrumentation allow loaded classes to be
redefined and ClassFileTransformer objects to be
registered for classes not yet loaded.
Interfaces
public interface ClassFileTransformer;
public interface Instrumentation;
Classes
public final class ClassDefinition;
Exceptions
public class IllegalClassFormatException extends Exception;
public class UnmodifiableClassException extends Exception;
|