railo.runtime.instrumentation
Class InstrumentationUtil
java.lang.Object
railo.runtime.instrumentation.InstrumentationUtil
public class InstrumentationUtil
- extends Object
InstrumentationUtil
public InstrumentationUtil()
clearAllBodies
public static byte[] clearAllBodies(Class<?> clazz,
boolean redefineClass)
- clear all method/constructor bodies of the given class
- Parameters:
clazz
- class to clearredefineClass
- if true change the class instance, if false just create the byte array
- Returns:
redefineClassEL
public static boolean redefineClassEL(Class clazz,
byte[] barr)
- redefine the class with the given byte array
- Parameters:
clazz
- barr
-
- Returns:
redefineClass
public static void redefineClass(Class clazz,
byte[] barr)
throws ClassNotFoundException,
UnmodifiableClassException
- Throws:
ClassNotFoundException
UnmodifiableClassException
isSupported
public static boolean isSupported()
Copyright © 2012 Railo