March 2005
Intermediate to advanced
1254 pages
104h 21m
English
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.
public interface ClassFileTransformer; public interface Instrumentation;
public final class ClassDefinition;public class IllegalClassFormatException extends Exception; public class UnmodifiableClassException extends Exception;