Author: limpbizkit
Date: Tue Nov  4 11:17:11 2008
New Revision: 661

Modified:
     
trunk/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java

Log:
More Javadoc fixes...

Modified:  
trunk/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java
==============================================================================
---  
trunk/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java
  
(original)
+++  
trunk/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java
  
Tue Nov  4 11:17:11 2008
@@ -88,9 +88,10 @@
   * <p>Private modules are implemented using [EMAIL PROTECTED]  
Injector#createChildInjector(Module[]) parent
   * injectors}. When it can satisfy their dependencies, just-in-time  
bindings will be created in the
   * root environment. Such bindings are shared among all environments in  
the tree.
- *
- * <p>The scope of a shared binding is also shared among all environments  
in the tree. For example,
- * if [EMAIL PROTECTED] FooImpl} is a shared singleton, all other modules will 
get  
the same instance.
+ *
+ * <p>The scope of a binding is constrained to its environment. A  
singleton bound in a private
+ * module will be unique to its environment. But a binding for the same  
type in a different private
+ * module will yield a different instance.
   *
   * <p>A shared binding that injects the [EMAIL PROTECTED] Injector} gets the 
root  
injector, which only has
   * access to bindings in the root environment. An explicit binding that  
injects the [EMAIL PROTECTED] Injector}

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