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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to