|
| Total Answers and Comments: 5 |
Last Update: January 17, 2008 Asked by: thiagarajan |
|
| | |
|
Submitted by: mohammad osman Inversion of control is based on the phenomenon that says, when ever dependency betwen two classes (say class A and class B) now if A needs to access the methods of B, then following our traditional approach we go ahead and create and object of B in A, but as the fact of matter, B is there to serve A not A serving B creating objects for B , So in IOC the the the class B will try to inject its object into A rather than A creating object of B. so the control is reversed , during the run time now spring container takes care which class object to inject into other class.
Osman.
Above answer was rated as good by the following members: JaiBharath, geeky920 | Go To Top
|