Revision: 1502
Author: sberlin
Date: Sun Feb 20 14:08:50 2011
Log: issue 282 - mention quirks with optional dependencies, JIT bindings &
child injectors in the javadoc.
http://code.google.com/p/google-guice/source/detail?r=1502
Modified:
/trunk/core/src/com/google/inject/Injector.java
=======================================
--- /trunk/core/src/com/google/inject/Injector.java Fri Nov 19 07:50:59 2010
+++ /trunk/core/src/com/google/inject/Injector.java Sun Feb 20 14:08:50 2011
@@ -213,7 +213,9 @@
*
* <p>Just-in-time bindings created for child injectors will be created
in an ancestor injector
* whenever possible. This allows for scoped instances to be shared
between injectors. Use
- * explicit bindings to prevent bindings from being shared with the
parent injector.
+ * explicit bindings to prevent bindings from being shared with the
parent injector. Optional
+ * injections in just-in-time bindings (created in the parent injector)
may be silently
+ * ignored if the optional dependencies are from the child injector.
*
* <p>No key may be bound by both an injector and one of its ancestors.
This includes just-in-time
* bindings. The lone exception is the key for {@code Injector.class},
which is bound by each
--
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.