Package com.usatiuk.objects.stores
Class SerializingObjectPersistentStore
java.lang.Object
com.usatiuk.objects.stores.SerializingObjectPersistentStore
Serializing wrapper for the ObjectPersistentStore.
It serializes the objects before storing them in the persistent store.
It deserializes the objects after reading them from the persistent store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a snapshot of the persistent store, with deserialized objects.
-
Constructor Details
-
SerializingObjectPersistentStore
public SerializingObjectPersistentStore()
-
-
Method Details
-
getSnapshot
Get a snapshot of the persistent store, with deserialized objects. The objects are deserialized lazily, only when their data is accessed.- Returns:
- a snapshot of the persistent store
-