|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.springframework.build.ant.CompilerAdapterFactory
public final class CompilerAdapterFactory
Creates the necessary compiler adapter, given basic criteria.
| Field Summary | |
|---|---|
private static java.lang.String |
MODERN_COMPILER
|
| Constructor Summary | |
|---|---|
private |
CompilerAdapterFactory()
This is a singleton -- can't create instances!! |
| Method Summary | |
|---|---|
private static boolean |
doesModernCompilerExist()
query for the Modern compiler existing |
static org.apache.tools.ant.taskdefs.compilers.CompilerAdapter |
getCompiler(java.lang.String compilerType,
org.apache.tools.ant.Task task)
Based on the parameter passed in, this method creates the necessary factory desired. |
private static org.apache.tools.ant.taskdefs.compilers.CompilerAdapter |
resolveClassName(java.lang.String className)
Tries to resolve the given classname into a compiler adapter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String MODERN_COMPILER
| Constructor Detail |
|---|
private CompilerAdapterFactory()
| Method Detail |
|---|
public static org.apache.tools.ant.taskdefs.compilers.CompilerAdapter getCompiler(java.lang.String compilerType,
org.apache.tools.ant.Task task)
throws org.apache.tools.ant.BuildException
compilerType - either the name of the desired compiler, or the
full classname of the compiler's adapter.task - a task to log through.
org.apache.tools.ant.BuildException - if the compiler type could not be resolved into
a compiler adapter.private static boolean doesModernCompilerExist()
private static org.apache.tools.ant.taskdefs.compilers.CompilerAdapter resolveClassName(java.lang.String className)
throws org.apache.tools.ant.BuildException
className - The fully qualified classname to be created.
org.apache.tools.ant.BuildException - This is the fit that is thrown if className
isn't an instance of CompilerAdapter.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||