Hi all,

I am using Wicket, with Warp Servlet and Guice and have annotated a User
class with @SessionScoped. For that, it is necessary that Guice creates the
instance.
However, I  would like to pass some parameters (from the instance's creator)
to the constructor of class User.
There is the Guice extension @AssistedInject, but this works only with Guice
2 and I am working with Guice 1.

Therefore, I created manually the factory class. But as the User object is
created manually by the Factory, the @SessionScope does not work. If  I
inject the User in another class, all the instance attributes are again
null.

Is there any solution?
Thanks a lot!

Christoph


-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to