ch.systemsx.cisd.openbis.dss.generic.shared.content
Interface IPersistenceManager

All Known Implementing Classes:
DelayedPersistenceManager, SimpleFileBasePersistenceManager

public interface IPersistenceManager

Manages persistence of a statefull object.


Method Summary
 java.io.Serializable load(java.io.Serializable defaultObject)
          Loads and returns the persistent object.
 void requestPersistence()
          Requests for persisting the object.
 

Method Detail

load

java.io.Serializable load(java.io.Serializable defaultObject)
Loads and returns the persistent object.

Parameters:
defaultObject - will be returned if loading failed.

requestPersistence

void requestPersistence()
Requests for persisting the object. This can be done synchronously or asynchronously depending on the implementation.