Revision: 1489
Author: [email protected]
Date: Wed Feb 2 09:18:33 2011
Log: Adding stop-gap measure of an anchor so we can link directly to the
robot legs faq.
http://code.google.com/p/google-guice/source/detail?r=1489
Modified:
/wiki/FrequentlyAskedQuestions.wiki
=======================================
--- /wiki/FrequentlyAskedQuestions.wiki Sat Nov 20 20:50:20 2010
+++ /wiki/FrequentlyAskedQuestions.wiki Wed Feb 2 09:18:33 2011
@@ -68,6 +68,7 @@
}}}
See [AssistedInject], which can be used to remove the factory boilerplate.
+<a name="RobotLegs"/>
===How do I build two similar but slightly different trees of objects?===
This is commonly called the "robot legs" problem: How to create a robot
with a two `Leg` objects, the left one injected with a `LeftFoot`, and the
right one with a `RightFoot`. But only one `Leg` class that's reused in
both contexts.
--
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.