Class JDTCompiler
java.lang.Object
org.apache.jasper.compiler.Compiler
org.apache.jasper.compiler.JDTCompiler
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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateClass(Map<String, SmapStratum> smaps) Servlet compilation.Methods inherited from class org.apache.jasper.compiler.Compiler
compile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getSmap, init, isOutDated, isOutDated, removeGeneratedClassFiles, removeGeneratedFiles
-
Constructor Details
-
JDTCompiler
public JDTCompiler()
-
-
Method Details
-
generateClass
protected void generateClass(Map<String, SmapStratum> smaps) throws FileNotFoundException, JasperException, Exception Description copied from class:CompilerServlet compilation. This compiles the generated sources into Servlets.- Specified by:
generateClassin classCompiler- Parameters:
smaps- The source maps for the class(es) generated from the source file- Throws:
FileNotFoundException- Source files not foundJasperException- Compilation errorException- Some other error
-