Comment by [email protected]:
I'd like to see the "@Provides @Singleton" example expanded. Is it
suppossed to call a "new" object like the documentation? Seems stange for a
singleton pattern.
DatabaseTransactionLog transactionLog = new DatabaseTransactionLog();
transactionLog.setJdbcUrl("jdbc:mysql://localhost/pizza");
transactionLog.setThreadPoolSize(30);
return transactionLog;
For more information:
http://code.google.com/p/google-guice/wiki/Scopes
--
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.