org.apache.commons.jexl2
Class ClassCreator
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canRun
public static final boolean canRun
ClassCreator
public ClassCreator(JexlEngine theJexl,
File theBase)
throws Exception
- Throws:
Exception
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.