Just to get the conversation going, here is a question: How do you decide which implementation of the interface to use? Does the application that uses the interface know which it wants? Or does it require a runtime parameter which might be derived from some other inputs?
On Aug 6, 10:53 pm, zhao yi <[email protected]> wrote: > I have an interface and have many implementations. How can I inject > them dynamically? I have a logic to inject them but where I should put > the logic? in module or provider? > > thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
