Comment by [email protected]:

Is it possible to multibind on one type of key (e.g. some enum) different interface and implementation? Example:

when I multibind:
InterfaceA to ImplA_1 on KeyA_1
InterfaceA to ImplA_1 on KeyA_2

until now, everything is ok, this works:
@Inject Map<KeyAType, Provider<InterfaceA>> map;

then I multibind:
InterfaceB key ImplB_1 on KeyA_1
InterfaceB key ImplB_2 on KeyA_2

and this: @Inject Map<KeyAType, Provider<InterfaceB>> map;
throws exception...

I'm not creating a defect, as I don't know, if It's a bug or a feature :-)

For more information:
http://code.google.com/p/google-guice/wiki/Multibindings

--
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.

Reply via email to