PDA

View Full Version : dependency injection



ibtissem07
Apr 8th, 2010, 04:50 AM
Hello

I have a problem to implement the dependancy between two classes : relation one to many . Can I find an example with the three layers MVC ? How to proceed in the model View and especially the controller !
I'll be very thankful if you could help.

LaurenJadeTaylor
Apr 13th, 2010, 03:45 AM
Dependency injection (DI) in object-oriented computer programming is a technique for supplying an external dependency (i.e. a reference) to a software component - that is, indicating to a part of a program which other parts it can use. It is a specific form of inversion of control where the concern being inverted is the process of obtaining the needed dependency. The term was first coined by Martin Fowler to describe the mechanism more clearly.

ibtissem07
Apr 13th, 2010, 04:34 AM
Dependency injection (DI) in object-oriented computer programming is a technique for supplying an external dependency (i.e. a reference) to a software component - that is, indicating to a part of a program which other parts it can use. It is a specific form of inversion of control where the concern being inverted is the process of obtaining the needed dependency. The term was first coined by Martin Fowler to describe the mechanism more clearly.

Thank you for your response .