Updates:
        Status: WorkingAsIntended

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

A few options:

1) Install the factory as in comment #1, but introduce a shim that delegates D->D and the other to either B or C. Users will inject the shim, and the shim will hide away the fact that the factory has two different methods for B & C.

or 2) Install the factory as mix of comment #1 & the original way. The difference would be you'd only have two installations: one for B & one for C, both of which would also be able to create D.

I'd prefer (1) because it's a bit more straightforward -- the factory can create everything, and explicit code is deciding how it's forwarding to one or another.

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