Hi , I'm new to the concept of IoC so I hope my question is not funny
and I would appreciated that when people answer me provide full code.
Now I have an Abstract class called ServiceConsumer. Assuming I have
the following
Say this is the ServiceConsumer class
public abstract class ServiceConsumer {
        public abstract List<ServiceConsumer> getDependencies();
        public abstract Object consum();
}

And those are the concrete versions :

1-CustomerServiceConsumer
2-CustomerAccountsServiceConsumer
3-CustomerCreditCardsServiceConsumer

Some how I want inject CustomerAccountsServiceConsumer &
CustomerCreditCardsServiceConsumer into getDependencies() in
CustomerServiceConsumer

Can this be done ?


* I also want to note that I'm using GIN , not Guice but I think they
have the same concept .

Thanks in advance

Aladdin

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