dk.netarkivet.harvester.harvesting
Class HeritrixLauncherFactory

java.lang.Object
  extended by dk.netarkivet.common.utils.SettingsFactory<HeritrixLauncher>
      extended by dk.netarkivet.harvester.harvesting.HeritrixLauncherFactory

public class HeritrixLauncherFactory
extends SettingsFactory<HeritrixLauncher>

Factory class for instanciating a specific implementation of HeritrixLauncher. The implementation class is defined by the setting dk.netarkivet.harvester.harvesting.heritrixLauncher.class.


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

HeritrixLauncherFactory

public HeritrixLauncherFactory()
Method Detail

getInstance

public static HeritrixLauncher getInstance(java.lang.Object... args)
                                    throws ArgumentNotValid
Returns an instance of the default HeritrixLauncher 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 HeritrixLauncher instance.
Throws:
ArgumentNotValid - if the instance cannot be constructed.