Uploaded image for project: 'Metadata Aggregator'
  1. Metadata Aggregator
  2. MDA-134

refactor approach to serialization

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: DOM Metadata, Pipeline
    • Labels:
      None

      Description

      The current ItemSerializer interface actually serialises a collection of items; the DOMElementSerializer implementation ignores all but the first of those.

      It would be better for ItemSerializer to only serialise a single Item<T> and leave the orchestration (or not) of the Collection to the calling stage.

      Both establishing and flushing/closing the OutputStream should be left to the caller; at present, the DOMElementSerializer closes the stream passed in even though it does not open it in the first place.

      These changes will allow more reusability of ItemSerializer instances, for example in contexts such as MDA-76.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian@iay.org.uk Ian Young
              Reporter:
              ian@iay.org.uk Ian Young
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 54 minutes
                  1h 54m