ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How can I use factory pattern in Dependecy Injection?

can anybody explain how can i use factories in Dependecy Injection

user-image
تم إضافة السؤال من قبل Azeem Shaik , Technical Lead , HCL Technologies
تاريخ النشر: 2013/04/09
Zaid Rabab'a
من قبل 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.

المزيد من الأسئلة المماثلة