pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: component class comments
Date Thu, 09 Apr 2009 15:57:42 GMT
>>> - Component#userData is going to be hard to use.
>>>  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.

>A better solution would be to use a map of values with methods like
>   void putUserData(Class key, Object userdata)
>   Object getUserData(Class key)
>where key is the Class of the client object.

OK, I understand now. That makes a lot of sense.

BTW, please feel free to enter these as enhancement requests in JIRA. There's a lot of good
ideas here and I don't want us to forget about them...

View raw message