dk.netarkivet.common.distribute.arcrepository
Class ArcRepositoryClientFactory

java.lang.Object
  extended by dk.netarkivet.common.utils.SettingsFactory<ArcRepositoryClient>
      extended by dk.netarkivet.common.distribute.arcrepository.ArcRepositoryClientFactory

public class ArcRepositoryClientFactory
extends SettingsFactory<ArcRepositoryClient>

A factory for ArcRepositoryClients. Implementation note: This implementation assumes that only one actual implementation class exists, pointed out by the setting settings.common.arcrepositoryClient.class, and merely gives three different view on that class.


Constructor Summary
ArcRepositoryClientFactory()
           
 
Method Summary
static HarvesterArcRepositoryClient getHarvesterInstance()
          Returns a new ArcRepositoryClient suitable for use by a harvester.
static PreservationArcRepositoryClient getPreservationInstance()
          Returns a new ArcRepositoryClient suitable for use in bit preservation.
static ViewerArcRepositoryClient getViewerInstance()
          Returns a new ArcRepositoryClient suitable for use by a viewer.
 
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

ArcRepositoryClientFactory

public ArcRepositoryClientFactory()
Method Detail

getHarvesterInstance

public static HarvesterArcRepositoryClient getHarvesterInstance()
Returns a new ArcRepositoryClient suitable for use by a harvester.

Returns:
An ArcRepositoryClient that implements the methods defined by HarvesterArcRepositoryClient. At end of use, close() should be called on this to release any resources claimed.

getViewerInstance

public static ViewerArcRepositoryClient getViewerInstance()
Returns a new ArcRepositoryClient suitable for use by a viewer.

Returns:
An ArcRepositoryClient that implements the methods defined by ViewerArcRepositoryClient. At end of use, close() should be called on this to release any resources claimed.

getPreservationInstance

public static PreservationArcRepositoryClient getPreservationInstance()
Returns a new ArcRepositoryClient suitable for use in bit preservation.

Returns:
An ArcRepositoryClient that implements the methods defined by PreservationArcRepositoryClient. At end of use, close() should be called on this to release any resources claimed.