Changes between Version 1 and Version 2 of GROUP_PERSISTENCE_R0


Ignore:
Timestamp:
03/07/09 12:41:11 (16 years ago)
Author:
boyan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified GROUP_PERSISTENCE_R0

    v1 v2  
    5555 
    5656= Design = 
    57 ^Describe your design here. 
     57The org.sophie2.base.persistence module will provide an extension point for formats via the BasePersistenceModule class. Each format should inherit PersistFormat and implement its abstract methods. Two additional methods will be provided - getSaver(Class<T extends Resource> saverClass) which returns a saver for a given type of resource and createLoader(Class<T extends Resource> loaderClass) which returns a loader for each resource of type T. Saving and loading of books should be implemented via the getSaver(Book.class) and createLoader(Book.class) methods. A default saver and loader might be provided in the future. The format registry should be easy to implement - it just has to track the registered extensions. 
    5858 
    5959= Implementation =