Package org.jumpmind.util
Class SimpleClassCompiler
java.lang.Object
org.jumpmind.util.SimpleClassCompiler
Compile Java code in memory, load it, and return a new instance. The class name is changed to make it unique and the caller should cast to a parent class or
interface. On subsequent calls, if the same Java code is passed again, the cached object is returned. Otherwise, a new class is compiled, loaded, and an
instance returned.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
REGEX_CLASS
- See Also:
-
objectMap
-
classSuffix
protected int classSuffix
-
-
Constructor Details
-
SimpleClassCompiler
public SimpleClassCompiler()
-
-
Method Details
-
getCompiledClass
- Throws:
Exception
-
getNextClassName
-