[jboss-user] [JBoss Seam] - Re: create method not found + @Factory
do-not-reply at jboss.com
Sun Jul 16 00:58:41 EDT 2006
No it isn't. @Factory("name") on a void method tells Seam to call this method when "name" needs to be created. This method typically sets an instance variable that is labeled for outjection like in Gavin's example. What is different in Gavin's example is that @DataModel implicitly outjects. All databinders implicitly outject.
There is a new feature in CVS that allows you to specify a return value for @Factory methods. If specified this value will be outjected. This actually causes problems for older apps (like mine) who depended on this not happening.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958310#3958310
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958310
More information about the jboss-user