Author: limpbizkit
Date: Wed Sep 24 13:04:54 2008
New Revision: 624

Modified:
    wiki/Scopes.wiki

Log:
Edited wiki page through web user interface.

Modified: wiki/Scopes.wiki
==============================================================================
--- wiki/Scopes.wiki    (original)
+++ wiki/Scopes.wiki    Wed Sep 24 13:04:54 2008
@@ -4,7 +4,9 @@

  Scopes are one of Guice's most powerful features.

-= Tips =
+= Scope Application =
+
+Prefer to apply scopes using an annotation on the implementing class. This  
provides a helpful hint to the code's maintainer. For example, [EMAIL 
PROTECTED]  
indicates that a class must be threadsafe.

  Scopes are applied to the binding source, not the binding target. For  
example, suppose we have a class `Applebees` that implements both `Bar` and  
`Grill` interfaces. These bindings will allow for *two* instances of that  
type, one for `Bar`s and another for `Grill`s:
  {{{

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