org.specrunner.core
Class SpecRunnerPluginPipeline

java.lang.Object
  extended by org.specrunner.core.SpecRunnerPluginPipeline
All Implemented Interfaces:
ISpecRunnerPlugin

public class SpecRunnerPluginPipeline
extends Object
implements ISpecRunnerPlugin

Default implementation. All methods can be overridden!!!!

Author:
Thiago Santos

Constructor Summary
SpecRunnerPluginPipeline()
           
 
Method Summary
protected  IResultSet doRun(IPlugin plugin, IConfiguration configuration)
          Perform runner.
 IResultSet run(IPlugin plugin)
          Runs a plugin.
 IResultSet run(IPlugin plugin, IConfiguration configuration)
          Runs a specification using a given configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecRunnerPluginPipeline

public SpecRunnerPluginPipeline()
Method Detail

run

public IResultSet run(IPlugin plugin)
               throws SpecRunnerException
Description copied from interface: ISpecRunnerPlugin
Runs a plugin.

Specified by:
run in interface ISpecRunnerPlugin
Parameters:
plugin - The plugin source.
Returns:
The result of execution.
Throws:
SpecRunnerException - On execution errors.

run

public IResultSet run(IPlugin plugin,
                      IConfiguration configuration)
               throws SpecRunnerException
Description copied from interface: ISpecRunnerPlugin
Runs a specification using a given configuration.

Specified by:
run in interface ISpecRunnerPlugin
Parameters:
plugin - The plugin source.
configuration - Specific configurations.
Returns:
The result of execution.
Throws:
SpecRunnerException - On execution errors.

doRun

protected IResultSet doRun(IPlugin plugin,
                           IConfiguration configuration)
                    throws SpecRunnerException
Perform runner.

Parameters:
plugin - The plugin instance.
configuration - A configuration.
Returns:
The result set.
Throws:
SpecRunnerException - On execution errors.


Copyright © 2014. All rights reserved.