public class ClassRedefiner extends Object
-javaagent
flag.Constructor and Description |
---|
ClassRedefiner() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canRedefineClasses(Log log) |
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. |
public static void redefineClasses(OpenJPAConfiguration conf, Map<Class<?>,byte[]> classes)
classes
, this method will redefine
all the element's methods such that field accesses are intercepted
in-line. If canRedefineClasses(Log)
returns false
,
this method is a no-op.public static boolean canRedefineClasses(Log log)
Instrumentation.isModifiableClass(java.lang.Class<?>)
, and
only checks whether or not an instrumentation is available and
if retransformation is possible.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.