org.specrunner.report.core
Class ReporterFactoryImpl

java.lang.Object
  extended by org.specrunner.report.core.ReporterFactoryImpl
All Implemented Interfaces:
IReporterFactory
Direct Known Subclasses:
ReporterFactoryDefault

public class ReporterFactoryImpl
extends Object
implements IReporterFactory

Default factory implementation.

Author:
Thiago Santos

Field Summary
protected  IReporter reporter
          Reused reporter.
 
Constructor Summary
ReporterFactoryImpl(IReporter reporter)
          Creates a new reporter factory.
 
Method Summary
 IReporter getReporter()
          Gets the reporter.
 IReporter newReporter()
          Creates a reporter.
 void setReporter(IReporter reporter)
          Set the reporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reporter

protected IReporter reporter
Reused reporter.

Constructor Detail

ReporterFactoryImpl

public ReporterFactoryImpl(IReporter reporter)
Creates a new reporter factory.

Parameters:
reporter - The reporter.
Method Detail

getReporter

public IReporter getReporter()
Gets the reporter.

Returns:
The reporter.

setReporter

public void setReporter(IReporter reporter)
Set the reporter.

Parameters:
reporter - The reporter.

newReporter

public IReporter newReporter()
Description copied from interface: IReporterFactory
Creates a reporter.

Specified by:
newReporter in interface IReporterFactory
Returns:
A reporter.


Copyright © 2014. All rights reserved.