Revision: 1393
Author: sberlin
Date: Sat Nov 20 17:42:03 2010
Log: Edited wiki page ToConstructorBindings through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1393

Modified:
 /wiki/ToConstructorBindings.wiki

=======================================
--- /wiki/ToConstructorBindings.wiki    Mon Jun 22 10:13:05 2009
+++ /wiki/ToConstructorBindings.wiki    Sat Nov 20 17:42:03 2010
@@ -1,6 +1,6 @@
-#labels Guice21
-=!ToConstructor Bindings=
-_This documents an experimental, unreleased feature available in Guice SVN only_
+#labels Guice3
+=!Constructor Bindings=
+_New in Guice 3.0_

Occasionally it's necessary to bind a type to an arbitrary constructor. This comes up when the `...@inject` annotation cannot be applied to the target constructor: either because it is a third party class, or because _multiple_ constructors that participate in dependency injection. [ProvidesMethods @Provides methods] provide the best solution to this problem! By calling your target constructor explicitly, you don't need reflection and its associated pitfalls. But there are limitations of that approach: manually constructed instances do not participate in [AOP AOP].

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