Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How can I use factory pattern in Dependecy Injection?

can anybody explain how can i use factories in Dependecy Injection

user-image
Question ajoutée par Azeem Shaik , Technical Lead , HCL Technologies
Date de publication: 2013/04/09
Zaid Rabab'a
par Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.

At first, this question makes me made some research about factory pattern, but as I see you can pass a factory via dependency injection, like you pass anything else. Maybe the recursiveness confuse you. I don't know what else to say about implementing it - maybe Muhammad Nabeel answer helps you.

More Questions Like This