com.github.drinkjava2.jsqlbox.compiler
Class DynamicCompileEngine

java.lang.Object
  extended by com.github.drinkjava2.jsqlbox.compiler.DynamicCompileEngine

public class DynamicCompileEngine
extends Object

This is a DynamicCompileEngine to compile and load Java source code into memory, only tested in Eclipse, Maven, Tomcat, Weblogic

Since:
1.7.0
Author:
Yong Zhu

Field Summary
static DynamicCompileEngine instance
           
 
Method Summary
 Class<?> javaCodeToClass(String fullClassName, String javaCode)
           
 Object javaCodeToNewInstance(String fullClassName, String javaCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final DynamicCompileEngine instance
Method Detail

javaCodeToClass

public Class<?> javaCodeToClass(String fullClassName,
                                String javaCode)

javaCodeToNewInstance

public Object javaCodeToNewInstance(String fullClassName,
                                    String javaCode)
                             throws InstantiationException,
                                    IllegalAccessException
Throws:
InstantiationException
IllegalAccessException


Copyright © 2018. All rights reserved.