Package org.apache.jasper.compiler
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidgenerateClass(Map<String, SmapStratum> smaps) Compile the servlet from .java file to .class fileMethods inherited from class org.apache.jasper.compiler.Compilercompile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getSmap, init, isOutDated, isOutDated, removeGeneratedClassFiles, removeGeneratedFiles
- 
Constructor Details- 
JDTCompilerpublic JDTCompiler()
 
- 
- 
Method Details- 
generateClassprotected void generateClass(Map<String, SmapStratum> smaps) throws FileNotFoundException, JasperException, ExceptionCompile the servlet from .java file to .class file- Specified by:
- generateClassin class- Compiler
- Parameters:
- smaps- The source maps for the class(es) generated from the source file
- Throws:
- FileNotFoundException- Source files not found
- JasperException- Compilation error
- Exception- Some other error
 
 
-