[jboss-user] [JBoss Seam] - Re: @In and @Factory

norman.richards@jboss.com do-not-reply at jboss.com
Fri Feb 8 12:03:32 EST 2008


Factories are not for initializing your state for your own use.  You could probably self-inject x or call Component.getInstance() or something.  If you are really trying to expose that state outside your object and need it internally, put an @Create on that @Factory method.




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127907#4127907

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127907



More information about the jboss-user mailing list