As others, I'm not sure I understood your problem, but maybe you're looking for the multibindings extension<http://code.google.com/p/google-guice/wiki/Multibindings> :
MultiBinder<ServiceConsumer> multi = Multibinder.newSetBinder(binder(), ServiceConsumer.class); multi.addBinding().to(CustomerAccountsServiceConsumer.class); multi.addBinding().to(CustomCreditCardsServiceConsumer.class); and then in CustomerServiceConsumer, @Inject a Set<ServiceConsumer> (and turn it into a List, using e.g. new ArrayList(set), to comply with your getDependencies return type). -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/ffH6gfC_-rYJ. 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.
