When do you expect C to get injected into B?
Bob
On Thu, Sep 11, 2008 at 1:20 PM, Pyrolistical <[EMAIL PROTECTED]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---