[jboss-user] [JBoss Seam] - Re: Injected properties don't worjk in constructors?

hstang do-not-reply at jboss.com
Thu Dec 21 00:39:51 EST 2006


Correct me if I am wrong, but Seam needs to instantiate a fully constructed instance before injecting zmponents via @In.  Hence NPE in the constructor.  

Try @Create.  The annotated method will be called when the component is fully initialized.  The log will be fine.

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

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



More information about the jboss-user mailing list