Revision: 1318
Author: sberlin
Date: Sun Oct 24 20:47:17 2010
Log: issue 553 -- add a mention in the javadoc of MapBinder & Multibinder that the Set & Map are unmodifiable.
http://code.google.com/p/google-guice/source/detail?r=1318

Modified:
/trunk/extensions/multibindings/src/com/google/inject/multibindings/MapBinder.java /trunk/extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java

=======================================
--- /trunk/extensions/multibindings/src/com/google/inject/multibindings/MapBinder.java Sat Oct 16 18:31:25 2010 +++ /trunk/extensions/multibindings/src/com/google/inject/multibindings/MapBinder.java Sun Oct 24 20:47:17 2010
@@ -92,6 +92,9 @@
  * that module can order its bindings appropriately. Avoid relying on the
* iteration order of elements contributed by different modules, since there is
  * no equivalent mechanism to order modules.
+ *
+ * <p>The map is unmodifiable.  Elements can only be added to the map by
+ * configuring the MapBinder.  Elements can never be removed from the map.
  *
  * <p>Values are resolved at map injection time. If a value is bound to a
  * provider, that provider's get method will be called each time the map is
=======================================
--- /trunk/extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java Sat Oct 16 18:31:25 2010 +++ /trunk/extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java Sun Oct 24 20:47:17 2010
@@ -81,6 +81,9 @@
  * that module can order its bindings appropriately. Avoid relying on the
* iteration order of elements contributed by different modules, since there is
  * no equivalent mechanism to order modules.
+ *
+ * <p>The set is unmodifiable.  Elements can only be added to the set by
+ * configuring the multibinder. Elements can never be removed from the set.
  *
* <p>Elements are resolved at set injection time. If an element is bound to a
  * provider, that provider's get method will be called each time the set is

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to