Interface ExternalPersistentObject

  • All Superinterfaces:
    java.lang.Cloneable, PersistentObject, java.io.Serializable
    All Known Implementing Classes:
    SimpleListOfStringsExternalPersistentObject

    @API(type=EXTENDABLE,
         src=PUBLIC)
    public interface ExternalPersistentObject
    extends PersistentObject

    Marker interface for persistent objects which are implemented in plugins.

    The implementation class should mostly contain simple fields (String, Integer, boolean).

    If you want to use more complex structures, you can use the "ro.sync.options.SerializableList" and "ro.sync.options.SerializableLinkedHashMap" objects.

    A sample implementation can be found in "ro.sync.exml.workspace.api.options.SimpleListOfStringsExternalPersistentObject".

    The object can be serialized to XML using the API "ro.sync.exml.workspace.api.options.GlobalOptionsStorage.serializePersistentObject(Object)".

    It can also be de-serialized using the "ro.sync.exml.workspace.api.options.GlobalOptionsStorage.deserializePersistentObject(String)" API.

    Since:
    22