On Thu, Feb 2, 2017 at 1:51 AM Robert Scholte <[email protected]> wrote:
> So basically it is still the same issue as a week or so ago: how to select > a different implementation for an interface. > Doing this within your code: > AFAIK that's not possible, and I wonder if even JSR330 supports it. > Thanks. The additional information I had this time was a better understanding of how Plexus, Sisu and Guice were all tied together. I thought that perhaps like CDI or HK2 I could specify somewhere else which implementation I wanted selected when no hint was provided, but perhaps Guice doesn't work like that (I don't know it), and Sisu…my understanding is that's a shim that does a form of autowiring for Guice. > If you don't specify a specific hint (or name), the default implementation > will be used. > OK, thanks! Isn't that just the same as…just using the default implementation, without having to go through the injection mechanism? I guess injection in this case is buying you configuration. Best, Laird
