UTF-X, Unit Testing Framework - Xslt

utfx.printers
Class ResultPrinterFactory

java.lang.Object
  extended by utfx.printers.ResultPrinterFactory

public class ResultPrinterFactory
extends java.lang.Object

ResultPrinter factory.

Copyright © 2004 - University of Southern Queensland.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

$Source: /cvs/utf-x/framework/src/java/utfx/printers/ResultPrinterFactory.java,v $

Version:
$Revision: 1.2 $Date: 2006/03/17 23:34:37 $ $ $Name: release_0_0_8_alpha $
Author:
Jacek Radajewski

Field Summary
(package private) static java.io.PrintStream err
          stderr print stream
(package private) static java.io.PrintStream out
          stdout print stream
(package private) static java.io.FileOutputStream output
          this is the output stream for the logger result printer
(package private) static java.io.PrintStream ps
          print stream
private  java.lang.Class resultPrinterClass
          Class representing the ResultPrinter type that this instance of the ResultPrinterFactory will create.
 
Constructor Summary
ResultPrinterFactory()
           
 
Method Summary
static ResultPrinterFactory newInstance()
          This method creates and returns a new instance of result printer factory.
 ResultPrinter newResultPrinter()
          Get a result printer instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

static java.io.PrintStream out
stdout print stream


err

static java.io.PrintStream err
stderr print stream


output

static java.io.FileOutputStream output
this is the output stream for the logger result printer


ps

static java.io.PrintStream ps
print stream


resultPrinterClass

private java.lang.Class resultPrinterClass
Class representing the ResultPrinter type that this instance of the ResultPrinterFactory will create.

Constructor Detail

ResultPrinterFactory

public ResultPrinterFactory()
Method Detail

newInstance

public static ResultPrinterFactory newInstance()
This method creates and returns a new instance of result printer factory. The returned factory will be configured to create result printers of type specified by the utfx.result-printer.class property. If this method fails to instantiate a class of type specified in that property then it will create and return a factory configured to use JunitResultPrinter which is the default result printer.

Returns:
instance of the result printer factory

newResultPrinter

public ResultPrinter newResultPrinter()
Get a result printer instance.

Returns:
result printer or null if type is invalid

UTF-X, Unit Testing Framework - Xslt