Class JDTCompiler


  • public class JDTCompiler
    extends Compiler
    JDT class compiler. This compiler will load source dependencies from the context classloader, reducing dramatically disk access during the compilation process. Based on code from Cocoon2.
    Author:
    Remy Maucherat
    • Constructor Detail

      • JDTCompiler

        public JDTCompiler()
    • Method Detail

      • generateClass

        protected void generateClass​(java.util.Map<java.lang.String,​SmapStratum> smaps)
                              throws java.io.FileNotFoundException,
                                     JasperException,
                                     java.lang.Exception
        Compile the servlet from .java file to .class file
        Specified by:
        generateClass in class Compiler
        Parameters:
        smaps - The source maps for the class(es) generated from the source file
        Throws:
        java.io.FileNotFoundException - Source files not found
        JasperException - Compilation error
        java.lang.Exception - Some other error