dk.netarkivet.harvester.harvesting.report
Class HarvestReportFactory

java.lang.Object
  extended by dk.netarkivet.common.utils.SettingsFactory<HarvestReport>
      extended by dk.netarkivet.harvester.harvesting.report.HarvestReportFactory

public class HarvestReportFactory
extends SettingsFactory<HarvestReport>

Factory class for instanciating a specific implementation of HarvestReport. The implementation class is defined by the setting HarvesterSettings.HARVEST_REPORT_CLASS


Constructor Summary
HarvestReportFactory()
           
 
Method Summary
static HarvestReport generateHarvestReport(java.lang.Object... args)
          Returns an instance of the default HarvestReport implementation defined by the setting HarvesterSettings.HARVEST_REPORT_CLASS.
 
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestReportFactory

public HarvestReportFactory()
Method Detail

generateHarvestReport

public static HarvestReport generateHarvestReport(java.lang.Object... args)
                                           throws ArgumentNotValid,
                                                  IOFailure
Returns an instance of the default HarvestReport implementation defined by the setting HarvesterSettings.HARVEST_REPORT_CLASS. This class must have a constructor or factory method with a signature matching the array args.

Parameters:
args - the arguments to the constructor or factory method
Returns:
the HarvestReport instance.
Throws:
ArgumentNotValid - if the instance cannot be constructed.
IOFailure