org.apache.commons.jexl2
Class ClassCreator

java.lang.Object
  extended by org.apache.commons.jexl2.ClassCreator

public class ClassCreator
extends Object

Helper class to test GC / reference interactions. Dynamically creates a class by compiling generated source Java code and load it through a dedicated class loader.


Field Summary
static boolean canRun
           
 
Constructor Summary
ClassCreator(JexlEngine theJexl, File theBase)
           
 
Method Summary
 void clear()
           
 Class<?> createClass()
           
 Class<?> getClassInstance()
           
 ClassLoader getClassLoader()
           
 String getClassName()
           
 void setSeed(int s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canRun

public static final boolean canRun
Constructor Detail

ClassCreator

public ClassCreator(JexlEngine theJexl,
                    File theBase)
             throws Exception
Throws:
Exception
Method Detail

clear

public void clear()

setSeed

public void setSeed(int s)

getClassName

public String getClassName()

getClassInstance

public Class<?> getClassInstance()
                          throws Exception
Throws:
Exception

getClassLoader

public ClassLoader getClassLoader()
                           throws Exception
Throws:
Exception

createClass

public Class<?> createClass()
                     throws Exception
Throws:
Exception


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.