Comment #6 on issue 809 by [email protected]: Guice Assisted Inject with multiple implementations of interface
http://code.google.com/p/google-guice/issues/detail?id=809

Thanks!
Option 1 would definitely work. I tried option 2, but that doesn't work.

I have getting errors while injection:
Factory method [public static com.google.inject.Injector com.google.inject.Guice.createInjector(java.lang.Iterable)] threw exception; nested exception is com.google.inject.CreationException: Guice creation errors:

1) No implementation for com.guice.test.AFactory was bound.

2) com.guice.test.A is an interface, not a concrete class. Unable to create AssistedInject factory.
 while locating com.guice.test.A at com.guice.test.AFactory.create

3) com.guice.test.A is an interface, not a concrete class. Unable to create AssistedInject factory.
while locating com.guice.test.A at com.guice.test.AFactory.create

My guess is that the names used for binding is different while installing FactoryModule("BC"/"D") and while binding the factory after installing ("B"/"C"), but I am not sure.

Can you help me understand what might be going wrong?




--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to