Actually, a better example would be:

class A {
  B b;
  @Inject D d;
}

class B {
  @Inject C c;
  public void useC() {
    c.doSomething();
  }
}

I still call getInstance on A to Inject D.

On Sep 11, 1:17 pm, Pyrolistical <[EMAIL PROTECTED]> wrote:
> Ok, sorry bad example.
>
> Its more like:
>
> class A {
>   B b;
>
> }
>
> class B {
>   @Inject C c;
>   public void useC() {
>     c.doSomething();
>   }
>
> }
>
> I don't have @Inject on B, because class A know B needs C Injected.
--~--~---------~--~----~------------~-------~--~----~
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