Class SerializingObjectPersistentStore

java.lang.Object
com.usatiuk.objects.stores.SerializingObjectPersistentStore

@ApplicationScoped public class SerializingObjectPersistentStore extends Object
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 Details

    • SerializingObjectPersistentStore

      public SerializingObjectPersistentStore()
  • Method Details

    • getSnapshot

      public Snapshot<JObjectKey,JDataVersionedWrapper> 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