Comment by o.groulx:
I'm not sure to understand. How Guice can figure out something like this?
//in a method somewhere
User user = userRepository.getUser("john");
SomethingThatNeedsAUser s = provider.get();
For more information:
http://code.google.com/p/google-guice/wiki/InjectingProviders
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---