[jboss-jira] [JBoss JIRA] Commented: (JBSEAM-265) Inject via method parameters

Stephen Friedrich (JIRA) jira-events at jboss.com
Thu Sep 7 04:13:30 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBSEAM-265?page=comments#action_12343002 ] 
            
Stephen Friedrich commented on JBSEAM-265:
------------------------------------------

I don't grok this: At first I thought it's nice to use params instead of fields just to keep everything in as narrow scope as possible.
But who is going to call this method?
>From Java code I still need to pass an argument. If I do so, is it overriden by the context variable?
If, however I call this method from JSF expressions - well I could simply reference the user context variable in the call instead.

Probably I am missing the point...

> Inject via method parameters
> ----------------------------
>
>                 Key: JBSEAM-265
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-265
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Gavin King
>         Assigned To: Gavin King
>
> public void login(@In("user") User user) {
>    ...
> }
> is ugly, but we should support it anyway.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list