org.specrunner.dumper.core
Class SourceDumperFactoryImpl

java.lang.Object
  extended by org.specrunner.dumper.core.SourceDumperFactoryImpl
All Implemented Interfaces:
ISourceDumperFactory
Direct Known Subclasses:
SourceDumperFactoryDefault

public class SourceDumperFactoryImpl
extends Object
implements ISourceDumperFactory

Default dumper implementation.

Author:
Thiago Santos

Field Summary
protected  ISourceDumper dumper
          The reusable dumper.
 
Constructor Summary
SourceDumperFactoryImpl(ISourceDumper dumper)
          Creates a factory of reusable dumpers.
 
Method Summary
 ISourceDumper getDumper()
          Gets the dumper.
 ISourceDumper newDumper()
          Creates a dumper.
 void setDumper(ISourceDumper dumper)
          Sets the runner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dumper

protected ISourceDumper dumper
The reusable dumper.

Constructor Detail

SourceDumperFactoryImpl

public SourceDumperFactoryImpl(ISourceDumper dumper)
Creates a factory of reusable dumpers.

Parameters:
dumper - The dumper.
Method Detail

getDumper

public ISourceDumper getDumper()
Gets the dumper.

Returns:
The dumper.

setDumper

public void setDumper(ISourceDumper dumper)
Sets the runner.

Parameters:
dumper - The dumper.

newDumper

public ISourceDumper newDumper()
                        throws SourceDumperException
Description copied from interface: ISourceDumperFactory
Creates a dumper.

Specified by:
newDumper in interface ISourceDumperFactory
Returns:
A new dumper.
Throws:
SourceDumperException - On creation errors.


Copyright © 2014. All rights reserved.