Changes between Version 1 and Version 2 of GROUP_PERSISTENCE_R0
- Timestamp:
- 03/07/09 12:41:11 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified GROUP_PERSISTENCE_R0
v1 v2 55 55 56 56 = Design = 57 ^Describe your design here.57 The 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. 58 58 59 59 = Implementation =