dk.netarkivet.harvester.harvesting.controller
Class HeritrixControllerFactory

java.lang.Object
  extended by dk.netarkivet.common.utils.SettingsFactory<HeritrixController>
      extended by dk.netarkivet.harvester.harvesting.controller.HeritrixControllerFactory

public class HeritrixControllerFactory
extends SettingsFactory<HeritrixController>

A factory class for HeritrixController instances.


Constructor Summary
HeritrixControllerFactory()
           
 
Method Summary
static HeritrixController getDefaultHeritrixController(java.lang.Object... args)
          Returns an instance of the default HeritrixController implementation defined by the setting dk.netarkivet.harvester.harvesting.heritrixController.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

HeritrixControllerFactory

public HeritrixControllerFactory()
Method Detail

getDefaultHeritrixController

public static HeritrixController getDefaultHeritrixController(java.lang.Object... args)
                                                       throws ArgumentNotValid
Returns an instance of the default HeritrixController implementation defined by the setting dk.netarkivet.harvester.harvesting.heritrixController.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 HeritrixController instance.
Throws:
ArgumentNotValid - if the instance cannot be constructed.