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

Class JspCompilerAdapterFactory

public class JspCompilerAdapterFactory extends Object

Creates the necessary compiler adapter, given basic criteria.
Method Summary
static JspCompilerAdaptergetCompiler(String compilerType, Task task)
Based on the parameter passed in, this method creates the necessary factory desired.
static JspCompilerAdaptergetCompiler(String compilerType, Task task, AntClassLoader loader)
Based on the parameter passed in, this method creates the necessary factory desired.

Method Detail

getCompiler

public static JspCompilerAdapter getCompiler(String compilerType, Task task)
Based on the parameter passed in, this method creates the necessary factory desired. The current mapping for compiler names are as follows:

Parameters: compilerType either the name of the desired compiler, or the full classname of the compiler's adapter. task a task to log through.

Throws: BuildException if the compiler type could not be resolved into a compiler adapter.

getCompiler

public static JspCompilerAdapter getCompiler(String compilerType, Task task, AntClassLoader loader)
Based on the parameter passed in, this method creates the necessary factory desired. The current mapping for compiler names are as follows:

Parameters: compilerType either the name of the desired compiler, or the full classname of the compiler's adapter. task a task to log through. loader AntClassLoader with which the compiler should be loaded

Throws: BuildException if the compiler type could not be resolved into a compiler adapter.

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