Class JavaCompilerComponent

  • All Implemented Interfaces:
    com.zfabrik.components.java.build.ICompiler

    public class JavaCompilerComponent
    extends java.lang.Object
    implements com.zfabrik.components.java.build.ICompiler
    • Field Summary

      • Fields inherited from interface com.zfabrik.components.java.build.ICompiler

        COMPILER_ID, TYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compile​(java.lang.String compName, java.io.File[] src, java.io.File dest, java.lang.ClassLoader cl)
      A general purpose compiler api using a class loader as class path abstraction.
      void init​(com.zfabrik.components.java.build.ICompilerContext context)
      Compiler initialization
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.zfabrik.components.java.build.ICompiler

        ALL, compile
    • Constructor Detail

      • JavaCompilerComponent

        public JavaCompilerComponent()
    • Method Detail

      • init

        public void init​(com.zfabrik.components.java.build.ICompilerContext context)
        Description copied from interface: com.zfabrik.components.java.build.ICompiler
        Compiler initialization
        Specified by:
        init in interface com.zfabrik.components.java.build.ICompiler
      • compile

        public boolean compile​(java.lang.String compName,
                               java.io.File[] src,
                               java.io.File dest,
                               java.lang.ClassLoader cl)
        Description copied from interface: com.zfabrik.components.java.build.ICompiler
        A general purpose compiler api using a class loader as class path abstraction. Returns true if the compilation passed otherwise it returns false.
        Specified by:
        compile in interface com.zfabrik.components.java.build.ICompiler
        Parameters:
        compName - the name of the component
        src - folder containing the source files
        dest - destination folder will contain compile results
        cl - class loader as class path abstraction
        Returns:
        true, iff compilation succeeds