|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.JAXXFactory
public class JAXXFactory
Factory of JAXXCompiler and JAXXEngine.
| Field Summary | |
|---|---|
protected static CompilerConfiguration |
configuration
shared instance of configuration * |
protected static JAXXEngine |
engine
shared instance of engine. |
| Constructor Summary | |
|---|---|
protected |
JAXXFactory()
|
| Method Summary | |
|---|---|
protected static void |
checkConfiguration()
|
protected static void |
checkEngine()
|
static JAXXEngine |
getEngine()
|
static void |
initFactory()
Load the Initializer services found via theServiceLoader
mecanism. |
static boolean |
isEngineRegistred()
|
static JAXXCompiler |
newDummyCompiler(java.lang.ClassLoader classLoader)
Creates a dummy Compiler for use in unit testing or dettached use of an engine. |
static JAXXEngine |
newDummyEngine()
Create a new empty launchor and set it as current launchor accessible via method getEngine(). |
static JAXXEngine |
newEngine(java.io.File basedir,
java.lang.String... relativePaths)
Create a new launchor and set it as current launchor accessible via method getEngine(). |
static void |
setConfiguration(CompilerConfiguration configuration)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static JAXXEngine engine
protected static CompilerConfiguration configuration
| Constructor Detail |
|---|
protected JAXXFactory()
| Method Detail |
|---|
public static void setConfiguration(CompilerConfiguration configuration)
public static JAXXEngine newDummyEngine()
getEngine().
public static JAXXEngine newEngine(java.io.File basedir,
java.lang.String... relativePaths)
getEngine().
The launchor will be prepared to run a set of files, expressed as paths
relative to a base directory.
The class names of the compiled files are derived from the relative path
strings (e.g. "example/Foo.jaxx" compiles into a class named
"example.Foo").
basedir - the directory against which to resolve relative pathsrelativePaths - a list of relative paths to .jaxx files being compiled
public static JAXXCompiler newDummyCompiler(java.lang.ClassLoader classLoader)
classLoader - class loader to use
public static JAXXEngine getEngine()
throws java.lang.NullPointerException
java.lang.NullPointerException - if no launchor was registred via a
newEngine-like method.public static boolean isEngineRegistred()
if there is an engine registred,
false otherwise.public static void initFactory()
Initializer services found via theServiceLoader
mecanism.
protected static void checkConfiguration()
throws java.lang.NullPointerException
java.lang.NullPointerException
protected static void checkEngine()
throws java.lang.NullPointerException
java.lang.NullPointerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||