当前页面:
在线文档首页 >
JDK 5 Documentation v6.0, Java 2 SDK 英文文档
Enhancements in java.lang.instrument - JDK 5 Documentation v6.0, Java 2 SDK 英文文档
|
Enhancements in JDK 6
java.lang.instrument
|
Contents
|
The following functionality has been added to the
java.lang.instrument
package
between its initial release in JDK 5.0 and JDK 6.
- Support for retransformation of class files -
To facilitate dynamic transformation of classes that have already been loaded, the following methods have been added.
They are suited to operations such as adding instrumentation
to methods whose classes have already been loaded.
Support for retransformation means that access to the original class file is no longer
required in order to instrument loaded classes.
They enable the easy removal of applied transformations and are designed to
work in multi-agent environments.
- Support for instrumenting native methods -
The following methods
allow native methods to be instrumented by providing a JVM-aware mechanism for wrapping the native method.
Support for appending to class loader search -
The following methods allow instrumentation support classes to be defined in the appropriate class loader.