Class SerializationStrategyLeanImpl

  • All Implemented Interfaces:
    SerializationStrategy, java.io.Serializable

    public class SerializationStrategyLeanImpl
    extends java.lang.Object
    implements SerializationStrategy
    Allow serialization of items to be overridden by strategies (See JIRA issue HOR-104, HOR-106)
    See Also:
    Serialized Form
    • Constructor Detail

      • SerializationStrategyLeanImpl

        public SerializationStrategyLeanImpl()
    • Method Detail

      • readResolve

        public java.lang.Object readResolve​(AbstractItemModel aim)
                                     throws java.io.ObjectStreamException
        Description copied from interface: SerializationStrategy
        Called when wanting to deserialize the AbstractItemModel aim
        Specified by:
        readResolve in interface SerializationStrategy
        Parameters:
        aim - the AbstractItemModel to deserialize
        Returns:
        The (possibly different) object that will be deserialized
        Throws:
        java.io.ObjectStreamException
      • writeReplace

        public java.lang.Object writeReplace​(AbstractItemModel aim)
                                      throws java.io.ObjectStreamException
        Description copied from interface: SerializationStrategy
        Called when serializing the AbstractItemModel aim
        Specified by:
        writeReplace in interface SerializationStrategy
        Parameters:
        aim - the AbstractItemModel to serialize
        Returns:
        The (possibly different) object that will be serialized
        Throws:
        java.io.ObjectStreamException