Class DocumentSnapshotFactory

java.lang.Object
com.levigo.jadice.web.shared.model.document.snapshot.DocumentSnapshotFactory

public class DocumentSnapshotFactory extends Object
Creates a serializable encapsulation of a document that is used to transport the client's document state to the server in a ServerOperation.
  • Constructor Details

    • DocumentSnapshotFactory

      public DocumentSnapshotFactory()
  • Method Details

    • createSnapshot

      public DocumentSnapshot createSnapshot(Document document)
    • createSnapshots

      public List<DocumentSnapshot> createSnapshots(List<Document> documents)
    • isSerializablePropertyType

      public static boolean isSerializablePropertyType(Object value)
      Utility method that can be used by all classes that rely on property serialization.

      Checks whether the given property value can be serialized and sent from client to server or vice versa.