Can Guice support chaining delegates of the same interface together? E.g. For interface "Thing" I have classes BlueThing, RedThing, YellowThing. BlueThing and RedThing both have a "Thing delegate" field. In one scenario I want Thing to be injected into Doer as BlueThing which delegates to RedThing which delegates to YellowThing. (In other scenarios I'll want Thing to be injected into Doer just as YellowThing - that's not tricky as long as I have the flexibility)
Doer.doStuff() -> BlueThing.doYourThing() -> RedThing.doYourThing -> YellowThing.doYourThing() I've seen the robot legs solution but this doesn't quite apply as I want to inject different implementations of the same interface... I need a robot leg that can have another robot leg that can have another robot leg. -- You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en.
