On Oct 21, 4:03 am, tzwoenn <[EMAIL PROTECTED]> wrote:
> Can we get some feedback, when this is implemented in the trunk? I am
> also interested in having this feature.

FYI, this feature was checked in yesterday. If you have code like
this:
  public class ProcessorImpl<T> implements Processor<T> {
    @Inject Subprocessor<T> subprocessor;
    ...
  }
...when you make the following bindings, Guice will do the right thing
and inject the string subprocessor.
  public void configure() {
    bind(new TypeLiteral<Processor<String>>() {})
        .to(new TypeLiteral<ProcessorImpl<String>>() {});
    bind(new TypeLiteral<Subprocessor<String>>() {}).to(...)

I'm curious - do you have concrete examples of what you're using it
for? I'm looking for something interesting to put into the
documentation...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to