Interface SerializationStrategy

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    SerializationStrategyDefaultImpl, SerializationStrategyLeanImpl

    public interface SerializationStrategy
    extends java.io.Serializable
    Allow serialization of items to be overridden by strategies that implement this interface (See JIRA issue HOR-104)
    • Method Detail

      • writeReplace

        java.lang.Object writeReplace​(AbstractItemModel aim)
                               throws java.io.ObjectStreamException
        Called when serializing the AbstractItemModel aim
        Parameters:
        aim - the AbstractItemModel to serialize
        Returns:
        The (possibly different) object that will be serialized
        Throws:
        java.io.ObjectStreamException
      • readResolve

        java.lang.Object readResolve​(AbstractItemModel aim)
                              throws java.io.ObjectStreamException
        Called when wanting to deserialize the AbstractItemModel aim
        Parameters:
        aim - the AbstractItemModel to deserialize
        Returns:
        The (possibly different) object that will be deserialized
        Throws:
        java.io.ObjectStreamException