| java.lang.Object org.apache.openjpa.enhance.ClassRedefiner
ClassRedefiner | public class ClassRedefiner (Code) | | Redefines the method bodies of existing classes. Supports Java 5 VMs that
have a javaagent installed on the command line as well as newer VMs without
any javaagent flag.
since: 1.0.0 |
Method Summary | |
public static boolean | canRedefineClasses() whether or not this VM has an instrumentation installed thatpermits redefinition of classes. | public static void | redefineClasses(OpenJPAConfiguration conf, Map<Class, byte[]> classes) For each element in classes , this method will redefine
all the element's methods such that field accesses are intercepted
in-line. |
canRedefineClasses | public static boolean canRedefineClasses()(Code) | | whether or not this VM has an instrumentation installed thatpermits redefinition of classes. This assumes that all the argumentswill be modifiable classes according tojava.lang.instrument.Instrumentation.isModifiableClass, andonly checks whether or not an instrumentation is available andif retransformation is possible. |
|
|