railo.runtime.instrumentation
Class InstrumentationUtil

java.lang.Object
  extended by railo.runtime.instrumentation.InstrumentationUtil

public class InstrumentationUtil
extends Object


Nested Class Summary
static class InstrumentationUtil.ChangeAdapter
           
 
Constructor Summary
InstrumentationUtil()
           
 
Method Summary
static byte[] clearAllBodies(Class<?> clazz, boolean redefineClass)
          clear all method/constructor bodies of the given class
static boolean isSupported()
           
static void redefineClass(Class clazz, byte[] barr)
           
static boolean redefineClassEL(Class clazz, byte[] barr)
          redefine the class with the given byte array
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentationUtil

public InstrumentationUtil()
Method Detail

clearAllBodies

public static byte[] clearAllBodies(Class<?> clazz,
                                    boolean redefineClass)
clear all method/constructor bodies of the given class

Parameters:
clazz - class to clear
redefineClass - 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