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()
           
 
Method Summary
 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
 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 surefireClassLoader, ClassLoader testClassLoader)
           
 void setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters)
           
 void setProviderProperties(Properties providerProperties)
           
 void setReporterConfiguration(ReporterConfiguration reporterConfiguration)
           
 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()
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

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 surefireClassLoader,
                            ClassLoader testClassLoader)
Specified by:
setClassLoaders in interface SurefireClassLoadersAware

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)


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