org.apache.maven.surefire.booter
Class BaseProviderFactory

java.lang.Object
  extended by org.apache.maven.surefire.booter.BaseProviderFactory
All Implemented Interfaces:
SurefireClassLoadersAware, ProviderParameters

public class BaseProviderFactory
extends Object
implements SurefireClassLoadersAware, ProviderParameters

Author:
Kristian Rosenvold

Constructor Summary
BaseProviderFactory(ReporterFactory reporterFactory, Boolean insideFork)
           
 
Method Summary
 ConsoleLogger getConsoleLogger()
          Gets a logger intended for console output.
 DirectoryScanner getDirectoryScanner()
          Provides a directory scanner that enforces the includes/excludes parameters that were passed to surefire.
 DirectoryScannerParameters getDirectoryScannerParameters()
          The raw parameters used in creating the directory scanner
 Properties getProviderProperties()
          The per-provider specific properties that may come all the way from the plugin's properties setting.
 ReporterConfiguration getReporterConfiguration()
          The raw parameters used in creating the ReporterManagerFactory
 ReporterFactory getReporterFactory()
          Provides features for creating reporting objects
 RunOrderCalculator getRunOrderCalculator()
          Provides a service to calculate run order of tests.
 ScanResult getScanResult()
          Provides the result of the directory scan performed in the plugin
 TestArtifactInfo getTestArtifactInfo()
          Artifact info about the artifact used to autodetect provider
 ClassLoader getTestClassLoader()
          The class loader for the tests
 TestRequest getTestRequest()
          Contains information about requested test suites or individual tests from the command line.
 void setClassLoaders(ClassLoader testClassLoader)
           
 void setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters)
           
 void setProviderProperties(Properties providerProperties)
           
 void setReporterConfiguration(ReporterConfiguration reporterConfiguration)
           
 void setRunOrderParameters(RunOrderParameters runOrderParameters)
           
 void setTestArtifactInfo(TestArtifactInfo testArtifactInfo)
           
 void setTestRequest(TestRequest testRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseProviderFactory

public BaseProviderFactory(ReporterFactory reporterFactory,
                           Boolean insideFork)
Method Detail

getDirectoryScanner

public DirectoryScanner getDirectoryScanner()
Description copied from interface: ProviderParameters
Provides a directory scanner that enforces the includes/excludes parameters that were passed to surefire. See #getDirectoryScannerParameters for details

Specified by:
getDirectoryScanner in interface ProviderParameters
Returns:
The directory scanner

getScanResult

public ScanResult getScanResult()
Description copied from interface: ProviderParameters
Provides the result of the directory scan performed in the plugin

Specified by:
getScanResult in interface ProviderParameters
Returns:
The scan result

getRunOrderCalculator

public RunOrderCalculator getRunOrderCalculator()
Description copied from interface: ProviderParameters
Provides a service to calculate run order of tests. Applied after directory scanning.

Specified by:
getRunOrderCalculator in interface ProviderParameters
Returns:
A RunOrderCalculator

getReporterFactory

public ReporterFactory getReporterFactory()
Description copied from interface: ProviderParameters
Provides features for creating reporting objects

Specified by:
getReporterFactory in interface ProviderParameters
Returns:
A ReporterFactory that allows the creation of one or more ReporterManagers

setDirectoryScannerParameters

public void setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters)

setReporterConfiguration

public void setReporterConfiguration(ReporterConfiguration reporterConfiguration)

setClassLoaders

public void setClassLoaders(ClassLoader testClassLoader)
Specified by:
setClassLoaders in interface SurefireClassLoadersAware

getConsoleLogger

public ConsoleLogger getConsoleLogger()
Description copied from interface: ProviderParameters
Gets a logger intended for console output.

This output is inteded for provider-oriented messages that are not attached to a single test-set and will normally be written to something console-like immediately.

Specified by:
getConsoleLogger in interface ProviderParameters
Returns:
A console logger

setTestRequest

public void setTestRequest(TestRequest testRequest)

getDirectoryScannerParameters

public DirectoryScannerParameters getDirectoryScannerParameters()
Description copied from interface: ProviderParameters
The raw parameters used in creating the directory scanner

Specified by:
getDirectoryScannerParameters in interface ProviderParameters
Returns:
The parameters

getReporterConfiguration

public ReporterConfiguration getReporterConfiguration()
Description copied from interface: ProviderParameters
The raw parameters used in creating the ReporterManagerFactory

Specified by:
getReporterConfiguration in interface ProviderParameters
Returns:
The reporter configuration

getTestRequest

public TestRequest getTestRequest()
Description copied from interface: ProviderParameters
Contains information about requested test suites or individual tests from the command line.

Specified by:
getTestRequest in interface ProviderParameters
Returns:
The testRequest

getTestClassLoader

public ClassLoader getTestClassLoader()
Description copied from interface: ProviderParameters
The class loader for the tests

Specified by:
getTestClassLoader in interface ProviderParameters
Returns:
the classloader

setProviderProperties

public void setProviderProperties(Properties providerProperties)

getProviderProperties

public Properties getProviderProperties()
Description copied from interface: ProviderParameters
The per-provider specific properties that may come all the way from the plugin's properties setting.

Specified by:
getProviderProperties in interface ProviderParameters
Returns:
the provider specific properties

getTestArtifactInfo

public TestArtifactInfo getTestArtifactInfo()
Description copied from interface: ProviderParameters
Artifact info about the artifact used to autodetect provider

Specified by:
getTestArtifactInfo in interface ProviderParameters
Returns:
The artifactinfo, or null if autodetect was not used.

setTestArtifactInfo

public void setTestArtifactInfo(TestArtifactInfo testArtifactInfo)

setRunOrderParameters

public void setRunOrderParameters(RunOrderParameters runOrderParameters)


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