On Fri, May 8, 2009 at 2:29 PM, Dan Allen <dan.j.allen@gmail.com> wrote:


The second use case would be to pick off flags that libraries set into scopes. So the values are already there, you just need to read them.

Several of our apps use a third-party filter [1] to authenticate the user, which stores credentials in the http session.  I'd appreciate being able to write:

class UsernameProvider
{

  @HttpSession Map<String, Object> session;

  @Produces @Username String retrieveCasReceipt()
  {
     return (String) session.get(CASFilter.CAS_FILTER_USER);
  }

}
 

So, +1 for Dan's suggestion.  If support for such attribute maps aren't in Seam, I'm sure I'm not the only one who will be putting them in my Util project.

-Matt

[1]  http://www.jasig.org/cas/client-integration/java-client





-Dan

--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.

_______________________________________________
seam-dev mailing list
seam-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-dev