Class SerializationStrategyLeanImpl.LeanItemModelHandler

    • Constructor Detail

      • LeanItemModelHandler

        public LeanItemModelHandler​(PK pk,
                                    java.lang.String tenantID)
    • Method Detail

      • resolveObject

        public java.lang.Object resolveObject()
                                       throws java.io.ObjectStreamException
        The readResolve method is called when ObjectInputStream has read an object from the stream and is preparing to return it to the caller. The object that was de-serialized is an instance of SerializationStrategyLeanImpl with the PK of the ItemModel we want So we retrieve the itemModel show PK is primaryKey, and return that.
        Specified by:
        resolveObject in class AbstractTenantAwareSerializationDTO
        Returns:
        The object whose PK is equal to the PK that was serialized
        Throws:
        java.io.ObjectStreamException