dk.netarkivet.harvester.scheduler.jobgen
Class JobGeneratorFactory

java.lang.Object
  extended by dk.netarkivet.common.utils.SettingsFactory<JobGenerator>
      extended by dk.netarkivet.harvester.scheduler.jobgen.JobGeneratorFactory

public class JobGeneratorFactory
extends SettingsFactory<JobGenerator>

Factory class for instantiating a specific implementation of JobGenerator. The implementation class is defined by the setting HarvesterSettings.JOBGEN_CLASS  (settings.harvester.scheduler.jobgen.class).


Constructor Summary
JobGeneratorFactory()
           
 
Method Summary
static JobGenerator getInstance(java.lang.Object... args)
          Returns an instance of the configured JobGenerator implementation defined by the setting HarvesterSettings.JOBGEN_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

JobGeneratorFactory

public JobGeneratorFactory()
Method Detail

getInstance

public static JobGenerator getInstance(java.lang.Object... args)
                                throws ArgumentNotValid
Returns an instance of the configured JobGenerator implementation defined by the setting HarvesterSettings.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