Actually i found the solution, along the lines of this post:
http://groups.google.com/group/google-guice/tree/browse_frm/thread/87bd1af69c03ebf8/624a4612a95ce076?hl=en&rnum=1&q=multibinders&_done=%2Fgroup%2Fgoogle-guice%2Fbrowse_frm%2Fthread%2F87bd1af69c03ebf8%2F624a4612a95ce076%3Fhl%3Den%26lnk%3Dgst%26q%3Dmultibinders%26#doc_a2ff23e8313145f1

Indeed we *can* use the multibinder,
by exposing annotated service bindings from inside private modules,
(as the "Robot Leg" example)
and then using those bindings on the parent module through the
'com.google.inject.Key' class like that:

someMultibinder.addBinding().to(Key.get(Service.class, Names.named
("someServiceId"))



On Oct 13, 6:52 pm, ankostis <[email protected]> wrote:
> It looks like the "Robo Leg" problem, but the FAQ does not describe
> how to combine it with Multibindings.
>
> That is, the robot has 2, pre-annotated, legs.
> What if i want to build a centipede, with plugged-in legs?
>
> On Sep 15, 9:52 am, "[email protected]" <[email protected]> wrote:
>
> > This somewhat sounds like the robot legs problem, which is addressed
> > in our FAQ:
> >  http://code.google.com/docreader/#p=google-guice&s=google-guice&t=Fre...
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to