org.apache.tools.ant.taskdefs.optional.jsp.compilers

Interface JspCompilerAdapter

Known Implementing Classes:
DefaultJspCompilerAdapter, JasperC

public interface JspCompilerAdapter

The interface that all jsp compiler adapters must adher to.

A compiler adapter is an adapter that interprets the jspc's parameters in preperation to be passed off to the compier this adapter represents. As all the necessary values are stored in the Jspc task itself, the only thing all adapters need is the jsp task, the execute command and a parameterless constructor (for reflection).

Method Summary

JspMangler
createMangler()
boolean
execute()
Executes the task.
boolean
implementsOwnDependencyChecking()
ask if compiler can sort out its own dependencies
void
setJspc(JspC attributes)
Sets the compiler attributes, which are stored in the Jspc task.

Method Details

createMangler

public JspMangler createMangler()
Returns:
an instance of the mangler this compiler uses

execute

public boolean execute()
            throws BuildException
Executes the task.
Returns:
has the compilation been successful

implementsOwnDependencyChecking

public boolean implementsOwnDependencyChecking()
ask if compiler can sort out its own dependencies
Returns:
true if the compiler wants to do its own depends

setJspc

public void setJspc(JspC attributes)
Sets the compiler attributes, which are stored in the Jspc task.

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.