Re: GWT / GIN: Adding user class to all presenters

2010-06-30 Thread Miroslav Genov
Hello, You can bind User object to a singleton provider that is retrieving user information. Here is what we are doing in one of our projects: public class UserInfo { public static UserInfo with(String email, String firstname, String surname, String family) { UserInfo info = new UserI

GWT / GIN: Adding user class to all presenters

2010-06-29 Thread jmccartie
I have a hazy understanding of GIN, but have it working for injecting presenters, etc. I'm trying to inject a self-made "User" class into all my presenters in order to get the currently logged-in user. I've added @Inject to the constructor on my User class, and added User to my GIN module ... but