Class HeritrixLauncherFactory
- java.lang.Object
-
- dk.netarkivet.common.utils.SettingsFactory<HeritrixLauncherAbstract>
-
- dk.netarkivet.harvester.heritrix3.HeritrixLauncherFactory
-
public class HeritrixLauncherFactory extends SettingsFactory<HeritrixLauncherAbstract>
Factory class for instantiating a specific implementation ofHeritrixLauncherAbstract
. The implementation class is defined by the setting dk.netarkivet.harvester.harvesting.heritrixLauncher.class.
-
-
Constructor Summary
Constructors Constructor Description HeritrixLauncherFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HeritrixLauncherAbstract
getInstance(Object... args)
Returns an instance of the defaultHeritrixLauncherAbstract
implementation defined by the setting dk.netarkivet.harvester.harvesting.heritrixLauncher.class .-
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
-
-
-
-
Method Detail
-
getInstance
public static HeritrixLauncherAbstract getInstance(Object... args) throws ArgumentNotValid
Returns an instance of the defaultHeritrixLauncherAbstract
implementation defined by the setting dk.netarkivet.harvester.harvesting.heritrixLauncher.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
HeritrixLauncherAbstract
instance. - Throws:
ArgumentNotValid
- if the instance cannot be constructed.
-
-