Comment by pljosh.mail:

If you want your provider to produce instance per whatever scope, like e.g. @Singleton, just define scope when binding:

bind(TransactionLog.class).toProvider(DatabaseTransactionLogProvider.class).in(Singleton.class);
(or any other available scope).


For more information:
http://code.google.com/p/google-guice/wiki/ProviderBindings

--
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.

Reply via email to