Dependent elements: (1) relying party; (2) the relying party.
Dependency definitions:
1) Dependency rules, how to establish dependencies between two objects;
2) Determination of dependent objects (who depends on whom);
The principle of dependence is determined by (stable abstraction layer);
Depends on who the caller is to implement.
Http://www.digpage.com/di.html#di
The core of the IOC is to pass the instantiation of the unit (lower layer) on which the class (upper level) depends to a third party.
1190000002424023
The control of the dependency is reversed to the start of the call chain. This allows you to control the behavior of the dependencies completely, by adjusting the different injected objects to the control program.
Http://www.cnblogs.com/DebugLZQ/archive/2013/06/05/3107957.html
Object A gets the process of relying on object B, the active behavior becomes the passive behavior, and the control is reversed, which is the origin of the name "control reversal".
That is, the IOC container, so that a, B, C, D these 4 objects do not have a coupling relationship, the transmission between gears all rely on "third party", all the control of the object to the "third party" IOC container, so, the IOC container becomes the key core of the entire system
The essence of control inversion and dependency injection