org.specrunner.core
Class SpecRunnerFactoryImpl

java.lang.Object
  extended by org.specrunner.core.SpecRunnerFactoryImpl
All Implemented Interfaces:
ISpecRunnerFactory
Direct Known Subclasses:
SpecRunnerFactoryDefault

public class SpecRunnerFactoryImpl
extends Object
implements ISpecRunnerFactory

Default factory implementation.

Author:
Thiago Santos

Field Summary
protected  ISpecRunner runner
          The reusable runner.
 
Constructor Summary
SpecRunnerFactoryImpl(ISpecRunner runner)
          Creates a factory with a reusable runner.
 
Method Summary
 ISpecRunner getRunner()
          Gets the runner.
 ISpecRunner newRunner()
          A new specification runner.
 void setRunner(ISpecRunner 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 ISpecRunner runner
The reusable runner.

Constructor Detail

SpecRunnerFactoryImpl

public SpecRunnerFactoryImpl(ISpecRunner runner)
Creates a factory with a reusable runner.

Parameters:
runner - The runner.
Method Detail

getRunner

public ISpecRunner getRunner()
Gets the runner.

Returns:
The runner.

setRunner

public void setRunner(ISpecRunner runner)
Sets the runner.

Parameters:
runner - The runner.

newRunner

public ISpecRunner newRunner()
Description copied from interface: ISpecRunnerFactory
A new specification runner.

Specified by:
newRunner in interface ISpecRunnerFactory
Returns:
A new runner.


Copyright © 2014. All rights reserved.