org.specrunner.runner.core
Class RunnerFactoryImpl

java.lang.Object
  extended by org.specrunner.runner.core.RunnerFactoryImpl
All Implemented Interfaces:
IRunnerFactory
Direct Known Subclasses:
RunnerFactoryDefault

public class RunnerFactoryImpl
extends Object
implements IRunnerFactory

Default factory implementation.

Author:
Thiago Santos

Field Summary
protected  IRunner runner
          A reusable runner.
 
Constructor Summary
RunnerFactoryImpl(IRunner runner)
          Creates a factory with reusable runner.
 
Method Summary
 IRunner getRunner()
          Gets the runner.
 IRunner newRunner(ISource source)
          Create a new runner.
 void setRunner(IRunner runner)
          Sets the runner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runner

protected IRunner runner
A reusable runner.

Constructor Detail

RunnerFactoryImpl

public RunnerFactoryImpl(IRunner runner)
Creates a factory with reusable runner.

Parameters:
runner - The runner.
Method Detail

getRunner

public IRunner getRunner()
Gets the runner.

Returns:
The runner.

setRunner

public void setRunner(IRunner runner)
Sets the runner.

Parameters:
runner - The runner.

newRunner

public IRunner newRunner(ISource source)
                  throws RunnerException
Description copied from interface: IRunnerFactory
Create a new runner.

Specified by:
newRunner in interface IRunnerFactory
Parameters:
source - The source.
Returns:
The runner.
Throws:
RunnerException - On creation error.


Copyright © 2014. All rights reserved.