org.apache.maven.surefire.report
Class ReporterManagerFactory

java.lang.Object
  extended by org.apache.maven.surefire.report.ReporterManagerFactory
All Implemented Interfaces:
ReporterFactory

public class ReporterManagerFactory
extends java.lang.Object
implements ReporterFactory

Note; this class contains "old" and "new" style instantiation, "old" style can be removed once we build 2.7.X + with 2.7


Field Summary
protected  RunReporter first
           
protected  RunStatistics globalRunStatistics
           
protected  java.lang.Object lock
           
protected  java.util.List reportDefinitions
           
protected  java.lang.ClassLoader surefireClassLoader
           
 
Constructor Summary
ReporterManagerFactory(java.lang.ClassLoader surefireClassLoader, ReporterConfiguration reporterConfiguration)
           
ReporterManagerFactory(java.util.List reportDefinitions, java.lang.ClassLoader surefireClassLoader, ReporterConfiguration reporterConfiguration)
           
 
Method Summary
 RunResult close()
           
 Reporter createReporter()
          Creates a (non-thread-safe) reporter
 RunStatistics getGlobalRunStatistics()
           
protected  java.util.List instantiateReportsNewStyle(java.util.List reportDefinitions, ReporterConfiguration reporterConfiguration, java.lang.ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reportDefinitions

protected final java.util.List reportDefinitions

surefireClassLoader

protected final java.lang.ClassLoader surefireClassLoader

globalRunStatistics

protected final RunStatistics globalRunStatistics

first

protected RunReporter first

lock

protected final java.lang.Object lock
Constructor Detail

ReporterManagerFactory

public ReporterManagerFactory(java.util.List reportDefinitions,
                              java.lang.ClassLoader surefireClassLoader,
                              ReporterConfiguration reporterConfiguration)

ReporterManagerFactory

public ReporterManagerFactory(java.lang.ClassLoader surefireClassLoader,
                              ReporterConfiguration reporterConfiguration)
Method Detail

getGlobalRunStatistics

public RunStatistics getGlobalRunStatistics()
Specified by:
getGlobalRunStatistics in interface ReporterFactory

createReporter

public Reporter createReporter()
Description copied from interface: ReporterFactory
Creates a (non-thread-safe) reporter

Specified by:
createReporter in interface ReporterFactory
Returns:
A reporter instance

close

public RunResult close()
Specified by:
close in interface ReporterFactory

instantiateReportsNewStyle

protected java.util.List instantiateReportsNewStyle(java.util.List reportDefinitions,
                                                    ReporterConfiguration reporterConfiguration,
                                                    java.lang.ClassLoader classLoader)


Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.