Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can I use factory pattern in Dependecy Injection?

can anybody explain how can i use factories in Dependecy Injection

user-image
Question added by Azeem Shaik , Technical Lead , HCL Technologies
Date Posted: 2013/04/09
Zaid Rabab'a
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.