org.schmant.report
Class AsynchronousStdoutReportFactory

java.lang.Object
  extended by org.schmant.report.AsynchronousStdoutReportFactory
All Implemented Interfaces:
ReportFactory

public final class AsynchronousStdoutReportFactory
extends Object
implements ReportFactory

This report factory creates an asynchronous report that logs to stdout and stderr.

Since:
0.8
Author:
Karl Gustafsson

Constructor Summary
AsynchronousStdoutReportFactory()
           
 
Method Summary
 Report newReport(String identifier)
          Create a new Report instance.
 void setReportLineFormatter(ReportLineFormatter llf)
          Set the ReportLineFormatter to use for Report objects created from this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousStdoutReportFactory

public AsynchronousStdoutReportFactory()
Method Detail

newReport

public Report newReport(String identifier)
Description copied from interface: ReportFactory
Create a new Report instance.

Specified by:
newReport in interface ReportFactory
Parameters:
identifier - A unique identifier for the instance (for identifying messages logged from different execution threads), or null for no identifier.
Returns:
A new Report instance.

setReportLineFormatter

public void setReportLineFormatter(ReportLineFormatter llf)
Description copied from interface: ReportFactory
Set the ReportLineFormatter to use for Report objects created from this factory. This must be set before any Report:s are created.

All ReportFactory implementations are required to use a default ReportLineFormatter (probably the SimpleReportLineFormatter) if no other formatter is set.

Specified by:
setReportLineFormatter in interface ReportFactory
Parameters:
llf - The new log line formatter.