org.apache.jasper.compiler
Class JDTJavaCompiler

java.lang.Object
  extended by org.apache.jasper.compiler.JDTJavaCompiler

public class JDTJavaCompiler
extends Object

JDT class compiler. This compiler will load source dependencies from the context classloader, reducing dramatically disk access during the compilation process.

Author:
Cocoon2, Remy Maucherat, Kin-man Chung Modified to implement JavaCompiler

Constructor Summary
JDTJavaCompiler()
           
 
Method Summary
 org.apache.jasper.compiler.JavacErrorDetail[] compile(String targetClassName, org.apache.jasper.compiler.Node.Nodes pageNodes)
           
 void doJavaFile(boolean keep)
           
 long getClassLastModified()
           
 Writer getJavaWriter(String javaFileName, String javaEncoding)
           
 void init(org.apache.jasper.JspCompilationContext ctxt, org.apache.jasper.compiler.ErrorDispatcher errDispatcher, boolean suppressLogging)
           
 void saveClassFile(String className, String classFileName)
           
 void setClassPath(List<File> cpath)
           
 void setDebug(boolean debug)
           
 void setExtdirs(String exts)
           
 void setSourceVM(String sourceVM)
           
 void setTargetVM(String targetVM)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDTJavaCompiler

public JDTJavaCompiler()
Method Detail

init

public void init(org.apache.jasper.JspCompilationContext ctxt,
                 org.apache.jasper.compiler.ErrorDispatcher errDispatcher,
                 boolean suppressLogging)

setExtdirs

public void setExtdirs(String exts)

setClassPath

public void setClassPath(List<File> cpath)

getClassLastModified

public long getClassLastModified()

getJavaWriter

public Writer getJavaWriter(String javaFileName,
                            String javaEncoding)
                     throws org.apache.jasper.JasperException
Throws:
org.apache.jasper.JasperException

setDebug

public void setDebug(boolean debug)

setSourceVM

public void setSourceVM(String sourceVM)

setTargetVM

public void setTargetVM(String targetVM)

saveClassFile

public void saveClassFile(String className,
                          String classFileName)

doJavaFile

public void doJavaFile(boolean keep)

compile

public org.apache.jasper.compiler.JavacErrorDetail[] compile(String targetClassName,
                                                             org.apache.jasper.compiler.Node.Nodes pageNodes)
                                                      throws org.apache.jasper.JasperException
Throws:
org.apache.jasper.JasperException


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.