Class HarvestReportFactory
- java.lang.Object
-
- dk.netarkivet.common.utils.SettingsFactory<HarvestReport>
-
- dk.netarkivet.harvester.heritrix3.report.HarvestReportFactory
-
public class HarvestReportFactory extends SettingsFactory<HarvestReport>
Factory class for instantiating a specific implementation ofHarvestReport
. The implementation class is defined by the settingHarvesterSettings.HARVEST_REPORT_CLASS
-
-
Constructor Summary
Constructors Constructor Description HarvestReportFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HarvestReport
generateHarvestReport(Object... args)
Returns an instance of the defaultHarvestReport
implementation defined by the settingHarvesterSettings.HARVEST_REPORT_CLASS
.-
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
-
-
-
-
Method Detail
-
generateHarvestReport
public static HarvestReport generateHarvestReport(Object... args) throws ArgumentNotValid, IOFailure
Returns an instance of the defaultHarvestReport
implementation defined by the settingHarvesterSettings.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
-
-