软件包 | 描述 |
---|---|
java.lang.instrument |
提供的服务允许java编程语言的代理工具运行在JVM上的程序。
|
Modifier and Type | Method and Description |
---|---|
void |
Instrumentation.addTransformer(ClassFileTransformer transformer)
注册所提供的变压器。
|
void |
Instrumentation.addTransformer(ClassFileTransformer transformer, boolean canRetransform)
注册所提供的变压器。
|
boolean |
Instrumentation.removeTransformer(ClassFileTransformer transformer)
将提供的变压器。
|
void |
Instrumentation.setNativeMethodPrefix(ClassFileTransformer transformer, String prefix)
此方法修改了本地方法解析的故障处理,允许重试以一个前缀应用到名称中。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.