Package org.apache.jasper.compiler
Class JDTCompiler
- java.lang.Object
-
- org.apache.jasper.compiler.Compiler
-
- org.apache.jasper.compiler.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 Summary
Constructors Constructor Description JDTCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateClass(java.util.Map<java.lang.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
-
-
-
-
Method Detail
-
generateClass
protected void generateClass(java.util.Map<java.lang.String,SmapStratum> smaps) throws java.io.FileNotFoundException, JasperException, java.lang.Exception
Description copied from class:Compiler
Servlet compilation. This compiles the generated sources into Servlets.- Specified by:
generateClass
in classCompiler
- Parameters:
smaps
- The source maps for the class(es) generated from the source file- Throws:
java.io.FileNotFoundException
- Source files not foundJasperException
- Compilation errorjava.lang.Exception
- Some other error
-
-