org.schmant.app.jruby
Class JRubyExecutorFactory

java.lang.Object
  extended by org.schmant.ScriptExecutorFactory
      extended by org.schmant.app.jruby.JRubyExecutorFactory

public final class JRubyExecutorFactory
extends ScriptExecutorFactory

This script executor factory creates JRubyExecutor for running JRuby build scripts (file name extension rb).

Since:
1.1
Author:
Karl Gustafsson
See Also:
JRubyExecutor

Constructor Summary
JRubyExecutorFactory()
           
 
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

JRubyExecutorFactory

public JRubyExecutorFactory()
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.