net.sourceforge.sqlunit
Class ReporterFactory

java.lang.Object
  extended by net.sourceforge.sqlunit.ReporterFactory

public final class ReporterFactory
extends java.lang.Object

The ReporterFactory returns references to Reporters.

Version:
$Revision: 1.8 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Method Summary
static IReporter getDefaultInstance(java.lang.String reportFile)
          Returns the default IReporter (TextReporter) object for SQLUnit.
static IReporter getInstance(java.lang.String name, java.lang.String reportFile)
          Returns a IReporter object given its name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IReporter getInstance(java.lang.String name,
                                    java.lang.String reportFile)
                             throws java.lang.Exception
Returns a IReporter object given its name.

Parameters:
name - the name of the Reporter object.
reportFile - the output file name where the report will be sent.
Returns:
an implementation of a IReporter object.
Throws:
java.lang.Exception - if there was a problem instantiating the Reporter.

getDefaultInstance

public static IReporter getDefaultInstance(java.lang.String reportFile)
                                    throws java.lang.Exception
Returns the default IReporter (TextReporter) object for SQLUnit.

Parameters:
reportFile - the report file to use for output.
Returns:
the default IReporter instance.
Throws:
java.lang.Exception - if there was a problem instantiating the Reporter.