40 |
package java.lang; |
package java.lang; |
41 |
|
|
42 |
import java.lang.instrument.ClassDefinition; |
import java.lang.instrument.ClassDefinition; |
43 |
|
import java.lang.instrument.Instrumentation; |
44 |
|
|
45 |
/** |
/** |
46 |
* @author Nicolas Geoffray (nicolas.geoffray@menlina.com) |
* @author Nicolas Geoffray (nicolas.geoffray@menlina.com) |
60 |
* Redefines classes given as parameters. The method has to call |
* Redefines classes given as parameters. The method has to call |
61 |
* the callTransformers from InstrumentationImpl |
* the callTransformers from InstrumentationImpl |
62 |
* |
* |
63 |
|
* @param inst an instrumentation object |
64 |
* @param definitions an array of bytecode<->class correspondance |
* @param definitions an array of bytecode<->class correspondance |
65 |
* |
* |
66 |
* @throws ClassNotFoundException if a class cannot be found |
* @throws ClassNotFoundException if a class cannot be found |
76 |
* classes |
* classes |
77 |
* @throws LinkageError if a linkage error occurs |
* @throws LinkageError if a linkage error occurs |
78 |
*/ |
*/ |
79 |
static native void redefineClasses(ClassDefinition[] definitions); |
static native void redefineClasses(Instrumentation inst, |
80 |
|
ClassDefinition[] definitions); |
81 |
|
|
82 |
/** |
/** |
83 |
* Get all the classes loaded by the JVM. |
* Get all the classes loaded by the JVM. |