Comment by dhanji:

Package local/private class is my preference. Or the same for (or  
protected) constructor depending on your use case. A lot of this depends on  
how the specific class in intended to be used.

The doc's main point is, prefer depending on interfaces and let Guice call  
new, as this gives you the maximum amount of control and flexibility of  
design.


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

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