org.specrunner.core
Class SpecRunnerFactoryPluginImpl

java.lang.Object
  extended by org.specrunner.core.SpecRunnerFactoryPluginImpl
All Implemented Interfaces:
ISpecRunnerFactoryPlugin
Direct Known Subclasses:
SpecRunnerFactoryPluginDefault

public class SpecRunnerFactoryPluginImpl
extends Object
implements ISpecRunnerFactoryPlugin

Default factory implementation.

Author:
Thiago Santos

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

Constructor Detail

SpecRunnerFactoryPluginImpl

public SpecRunnerFactoryPluginImpl(ISpecRunnerPlugin runner)
Creates a factory with a reusable runner.

Parameters:
runner - The runner.
Method Detail

getRunner

public ISpecRunnerPlugin getRunner()
Gets the runner.

Returns:
The runner.

setRunner

public void setRunner(ISpecRunnerPlugin runner)
Sets the runner.

Parameters:
runner - The runner.

newRunner

public ISpecRunnerPlugin newRunner()
Description copied from interface: ISpecRunnerFactoryPlugin
A new specification runner.

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


Copyright © 2014. All rights reserved.