<br><br><div class="gmail_quote">On Tue, May 26, 2009 at 8:46 PM, Gavin King <span dir="ltr"><<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, May 26, 2009 at 5:43 PM, Matt Drees <<a href="mailto:matt.drees@gmail.com">matt.drees@gmail.com</a>> wrote:<br>
<br>
> Why doesn't BeanIdentifier#toString() work for that? Or why can't the<br>
> context implement its own BeanIdentifier -> httpsession attribute mapping?<br>
<br>
</div>If we're just going to call toString() on the thing, what is the point<br>
of BeanIdentifier?</blockquote><div><br><br>I imagine some custom contexts don't need to be String based. A Map<BeanIdentifier, Object> is potentially faster than a Map<String, Object>, and (IMO) it makes for prettier code. I suppose the latter is my primary motivation.<br>
<br>Maybe I've just been burned too many times by String being used inappropriately.<br><br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<font color="#888888"><br>
<br>
<br>
--<br>
</font><div><div></div><div class="h5">Gavin King<br>
<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>
<a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
<a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
<a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
</div></div></blockquote></div><br>