[jboss-jira] [JBoss JIRA] Created: (JBSEAM-355) Constructor injection of component dependencies
Christian Bauer (JIRA)
jira-events at jboss.com
Mon Sep 18 14:55:01 EDT 2006
Constructor injection of component dependencies
-----------------------------------------------
Key: JBSEAM-355
URL: http://jira.jboss.com/jira/browse/JBSEAM-355
Project: JBoss Seam
Issue Type: Feature Request
Reporter: Christian Bauer
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: 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