I have three classes:

This brief representation of their relationships:
C-->B-->A
-------------------------------------------------
("-->" means depending on,A and B are generic classes)

Below is detailed one:
------------------------------------------------------

class A<M,I>{
        @Inject
        A(Factory<M,I> factory){
              ......
        }
}

class B depends on class A
--------------------------------
class B<M,I>{
        @Inject
        B(A<M,I> a){
                 ......
        }
}

class C  depends on class B
-------------------------------------

class CImpl implement C{
        @Inject
        B(B<MExt,IExt> a){
             //here, MExt and IExt come from interface C
        }
}

---------------------------------------------
Question is how to inject factory for class A?

-- 
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