uk.ac.ed.inf.ogsaconfig.garm.persistence
Class XMLPersistenceMechanismFactory

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.persistence.XMLPersistenceMechanismFactory
All Implemented Interfaces:
PersistenceMechanismFactory

public class XMLPersistenceMechanismFactory
extends java.lang.Object
implements PersistenceMechanismFactory

XMLPersistenceMechanismFactory creates XML persistence mechanisms for given references


Constructor Summary
XMLPersistenceMechanismFactory(java.io.File storeDir)
           
 
Method Summary
 void cleanup()
          Performs any necessary cleanup operations to synchronise the data in storage prior to shutdown
 PersistenceMechanism getPersistenceMechanism(java.lang.String reference)
          Returns a persistence mechanism for the chain whose reference is given
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPersistenceMechanismFactory

public XMLPersistenceMechanismFactory(java.io.File storeDir)
Parameters:
storeDir - is the directory that should be used for files
Method Detail

getPersistenceMechanism

public PersistenceMechanism getPersistenceMechanism(java.lang.String reference)
Description copied from interface: PersistenceMechanismFactory
Returns a persistence mechanism for the chain whose reference is given

Specified by:
getPersistenceMechanism in interface PersistenceMechanismFactory

cleanup

public void cleanup()
Description copied from interface: PersistenceMechanismFactory
Performs any necessary cleanup operations to synchronise the data in storage prior to shutdown

Specified by:
cleanup in interface PersistenceMechanismFactory