Class HeritrixControllerFactory
- java.lang.Object
-
- dk.netarkivet.common.utils.SettingsFactory<IHeritrixController>
-
- dk.netarkivet.harvester.heritrix3.controller.HeritrixControllerFactory
-
public class HeritrixControllerFactory extends SettingsFactory<IHeritrixController>
A factory class for HeritrixController instances.
-
-
Constructor Summary
Constructors Constructor Description HeritrixControllerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IHeritrixController
getDefaultHeritrixController(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
-
-
-
-
Method Detail
-
getDefaultHeritrixController
public static IHeritrixController getDefaultHeritrixController(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.
-
-