|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.enhance.ClassRedefiner
public class ClassRedefiner
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.
Constructor Summary | |
---|---|
ClassRedefiner()
|
Method Summary | |
---|---|
static boolean |
canRedefineClasses()
|
static void |
redefineClasses(org.apache.openjpa.conf.OpenJPAConfiguration conf,
java.util.Map<java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassRedefiner()
Method Detail |
---|
public static void redefineClasses(org.apache.openjpa.conf.OpenJPAConfiguration conf, java.util.Map<java.lang.Class,byte[]> classes)
classes
, this method will redefine
all the element's methods such that field accesses are intercepted
in-line. If canRedefineClasses()
returns false
,
this method is a no-op.
public static boolean canRedefineClasses()
java.lang.instrument.Instrumentation#isModifiableClass
, and
only checks whether or not an instrumentation is available and
if retransformation is possible.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |