Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-67

Component#userData should allow multiple clients to co-exist

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.2
    • wtk
    • None

    Description

      It is very handy to be able to stash extra info on a component, but when multiple libraries all want to do this, it quickly gets out of hand.

      When multiple libraries all want to do this, they can conflict e.g. if I add LibraryA and LibraryB to my pivot application, and both libraries want to enhance standard Pivot behaviour by stashing stuff in the Component, they
      will overwrite each others UserData.

      A better solution would be to use a map of values with methods like
      void putUserData(Class key, Object userdata)
      Object getUserData(Class key)

      Attachments

        1. patch.txt
          7 kB
          Noel Grandin

        Activity

          People

            gbrown Gregory K. Brown
            grandinj Noel Grandin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: