Class JAXXFactory

    • Field Detail

      • engine

        protected static JAXXEngine engine
        shared instance of engine.
    • Constructor Detail

      • JAXXFactory

        protected JAXXFactory()
    • Method Detail

      • newDummyEngine

        public static JAXXEngine newDummyEngine()
        Create a new empty launchor and set it as current launchor accessible via method getEngine().
        Returns:
        the new instanciated launchor
      • newEngine

        public static JAXXEngine newEngine​(File basedir,
                                           String... relativePaths)
        Create a new launchor and set it as current launchor accessible via method 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").
        Parameters:
        basedir - the directory against which to resolve relative paths
        relativePaths - a list of relative paths to .jaxx files being compiled
        Returns:
        the new instanciated launchor
      • newDummyCompiler

        public static JAXXCompiler newDummyCompiler​(ClassLoader classLoader)
        Creates a dummy Compiler for use in unit testing or dettached use of an engine.
        Parameters:
        classLoader - class loader to use
        Returns:
        the compiler
      • isEngineRegistred

        public static boolean isEngineRegistred()
        Returns:
        true if there is an engine registred, false otherwise.