public class JAXXFactory extends Object
JAXXCompiler and JAXXEngine.| Modifier and Type | Field and Description |
|---|---|
protected static CompilerConfiguration |
configuration
shared instance of configuration *
|
protected static JAXXEngine |
engine
shared instance of engine.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JAXXFactory() |
| Modifier and Type | Method and Description |
|---|---|
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(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(File basedir,
String... relativePaths)
Create a new launchor and set it as current launchor accessible via
method
getEngine(). |
static void |
setConfiguration(CompilerConfiguration configuration) |
protected static JAXXEngine engine
protected static CompilerConfiguration configuration
public static void setConfiguration(CompilerConfiguration configuration)
public static JAXXEngine newDummyEngine()
getEngine().public static JAXXEngine newEngine(File basedir, 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 compiledpublic static JAXXCompiler newDummyCompiler(ClassLoader classLoader)
classLoader - class loader to usepublic static JAXXEngine getEngine() throws NullPointerException
NullPointerException - if no launchor was registred via a
newEngine-like method.public static boolean isEngineRegistred()
true if there is an engine registred, false otherwise.public static void initFactory()
Initializer services found via theServiceLoader
mecanism.protected static void checkConfiguration()
throws NullPointerException
NullPointerExceptionprotected static void checkEngine()
throws NullPointerException
NullPointerExceptionCopyright © 2008–2018 Ultreia.io. All rights reserved.