Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1106

Remove misleading getAttrMap and similar methods from TOs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.4, 2.1.0
    • Component/s: common
    • Labels:
      None

      Description

      ConnObjectTO and the classes implementing AttributableTO provide methods like as getAttrMap(), getPlainAttrMap(), getDerAttrMap() and getVirAttrMap(), with purpose of providing a read-only view of all attributes (of different types).

      Using such methods, however, can be costing (the resulting map is built for each invocation) and also confusing, as one would expect that adding / removing entries would result into effective attribute changes.

      Such methods should be removed, and substituted with more tailored replacements where needed.

        Attachments

          Activity

            People

            • Assignee:
              ilgrosso Francesco Chicchiriccò
              Reporter:
              ilgrosso Francesco Chicchiriccò
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: