Component#userData should allow multiple clients to co-exist
-------------------------------------------------------------

                 Key: PIVOT-67
                 URL: https://issues.apache.org/jira/browse/PIVOT-67
             Project: Pivot
          Issue Type: Improvement
          Components: wtk
    Affects Versions: 1.1
            Reporter: Noel Grandin
            Priority: Minor


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) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to