[jboss-user] [JBoss Seam] - newbie doubt about bijection

nico.ben do-not-reply at jboss.com
Mon Dec 18 11:19:09 EST 2006


Hi!
I am reading seam manual and I have a doubt concerning the place where insert the @In annotation and its effect.
>From the manual I read:

anonymous wrote : The @In annotation specifies that a value should be injected, either into an instance variable:
  | @Name("loginAction")
  | @Stateless
  | @Interceptors(SeamInterceptor.class)
  | public class LoginAction implements Login {
  | @In User user;
  | ...
  | }
  | or into a setter method:
  | @In
  | public void setUser(User user) {
  | this.user=user;
  | }

In both the cases the effect will be the same? 
Or in the second case (@In into the method) the injection will be executed only when the method is called?

Thank u,
Nico

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

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



More information about the jboss-user mailing list