@Service public class ClassCompilerUtil extends Object
| Constructor and Description |
|---|
ClassCompilerUtil() |
| Modifier and Type | Method and Description |
|---|---|
Class |
compileNewClass(String fileName,
String classPath,
String source,
ClassLoader loader)
Utility function to compile a class in memory on server
|
public Class compileNewClass(String fileName, String classPath, String source, ClassLoader loader) throws Exception
fileName - the filename of the class to compileclassPath - the classpath of the filesource - the string source code of the classloader - the web application url class loaderExceptionCopyright © 2014. All rights reserved.