Class JobGeneratorFactory
- java.lang.Object
-
- dk.netarkivet.common.utils.SettingsFactory<JobGenerator>
-
- dk.netarkivet.harvester.scheduler.jobgen.JobGeneratorFactory
-
public class JobGeneratorFactory extends SettingsFactory<JobGenerator>
Factory class for instantiating a specific implementation ofJobGenerator
. The implementation class is defined by the settingHarvesterSettings.JOBGEN_CLASS
( settings.harvester.scheduler.jobgen.class).
-
-
Constructor Summary
Constructors Constructor Description JobGeneratorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JobGenerator
getInstance(Object... args)
Returns an instance of the configuredJobGenerator
implementation defined by the settingHarvesterSettings.JOBGEN_CLASS
.-
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
-
-
-
-
Method Detail
-
getInstance
public static JobGenerator getInstance(Object... args) throws ArgumentNotValid
Returns an instance of the configuredJobGenerator
implementation defined by the settingHarvesterSettings.JOBGEN_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
JobGenerator
instance. - Throws:
ArgumentNotValid
-
-