org.schmant.app.groovy
Class GroovyExecutorFactory

java.lang.Object
  extended by org.schmant.ScriptExecutorFactory
      extended by org.schmant.app.groovy.GroovyExecutorFactory

public final class GroovyExecutorFactory
extends ScriptExecutorFactory

Script executor factory that handles build scripts with the file name extension groovy.

Since:
1.1
Author:
Karl Gustafsson
See Also:
GroovyExecutor

Constructor Summary
GroovyExecutorFactory()
           
 
Method Summary
 boolean canHandleScriptFileNameExtension(String extension)
          Does this script executor factory create a ScriptExecutor that can handle build scripts with the supplied file name extension?
 ScriptExecutor create(LauncherSettings ls, Report r)
          Create a ScriptExecutor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyExecutorFactory

public GroovyExecutorFactory()
Method Detail

canHandleScriptFileNameExtension

public boolean canHandleScriptFileNameExtension(String extension)
Description copied from class: ScriptExecutorFactory
Does this script executor factory create a ScriptExecutor that can handle build scripts with the supplied file name extension?

Specified by:
canHandleScriptFileNameExtension in class ScriptExecutorFactory
Parameters:
extension - The file name extension in lower case, without the leading dot.
Returns:
true if this script executor factory can handle the script file.

create

public ScriptExecutor create(LauncherSettings ls,
                             Report r)
Description copied from class: ScriptExecutorFactory
Create a ScriptExecutor.

Specified by:
create in class ScriptExecutorFactory
Parameters:
ls - Command line arguments.
r - A report for logging output to.
Returns:
A script executor.