Author: limpbizkit
Date: Wed Sep 24 13:03:14 2008
New Revision: 623

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:03:14 2008
@@ -10,11 +10,11 @@
  {{{
    bind(Bar.class).to(Applebees.class).in(Singleton.class);
    bind(Grill.class).to(Applebees.class).in(Singleton.class);
-}}
+}}}
  This is because the scopes apply to the bound type, not the type that  
satisfies that binding. To allow only a single instance of our  
implementation class to be created, use a [EMAIL PROTECTED] annotation on the  
declaration for that class. Or add yet another binding:
  {{{
    bind(Applebees.class).in(Singleton.class);
-}}
+}}}
  This binding makes the other two `.in(Singleton.class)` clauses above  
unnecessary.

  Prefer to bind with the scope annotation rather than the scope instance:

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