[seam-issues] [JBoss JIRA] Closed: (JBSEAM-355) Constructor injection of component dependencies

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Jan 22 09:19:19 EST 2010


     [ https://jira.jboss.org/jira/browse/JBSEAM-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed JBSEAM-355.
----------------------------

    Resolution: Out of Date
      Assignee: Pete Muir


Supported in CDI

> Constructor injection of component dependencies
> -----------------------------------------------
>
>                 Key: JBSEAM-355
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-355
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Christian Bauer
>            Assignee: Pete Muir
>            Priority: Minor
>
> Take the registration example. The 'user' component is instantiated by Seam when JSF first looks for 'user' in a page. It is then put in the SESSION context (think CONVERSATION for other use cases of what I'm proposing). Seam uses the default constructor to instantiate the component. 
> Now imagine that some attributes of User are immutable and that the only way to set their values is through a different constructor. Also imagine that these values are actually present when Seam instantiates the 'user' component, e.g. in the current CONVERSATION. I'd like to tell Seam to call my constructor and use EL to bind the arguments.
> Without this feature, immutable properties need to have public setter methods that I call later in an action method to wire in the required attributes manually.

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

        


More information about the seam-issues mailing list