org.apache.maven.surefire.report
Class ReporterManagerFactory

java.lang.Object
  extended by org.apache.maven.surefire.report.ReporterManagerFactory

public class ReporterManagerFactory
extends java.lang.Object

Creates ReporterManager instances for the providers.

A ReporterManager and the underlying reporters are stateful objects. For safe concurrent usage of the reporting infrastructure, each thread needs its own instance.

This factory also ensures that runStarting/runCompleted is called on the FIRST reporterManger that is allocated, but none of the subsequent managers.

Author:
Jason van Zyl, Kristian Rosenvold (extracted factory)

Constructor Summary
ReporterManagerFactory(java.util.List reportDefinitions, java.lang.ClassLoader surefireClassLoader)
           
 
Method Summary
 void close()
           
 ReporterManager createReporterManager()
           
 RunStatistics getGlobalRunStatistics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReporterManagerFactory

public ReporterManagerFactory(java.util.List reportDefinitions,
                              java.lang.ClassLoader surefireClassLoader)
Method Detail

getGlobalRunStatistics

public RunStatistics getGlobalRunStatistics()

createReporterManager

public ReporterManager createReporterManager()
                                      throws TestSetFailedException
Throws:
TestSetFailedException

close

public void close()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.