1 Reply Latest reply on Dec 18, 2006 11:43 AM by gavin.king

    newbie doubt about bijection

    nico.ben

      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:

      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