Lecture
Inversion of control (English Inversion of Control , IoC ) is an important principle of object-oriented programming used to reduce gearing in computer programs [1]. Also, an architectural integration solution that simplifies the expansion of system capabilities, in which control over the program’s control flow remains behind the framework [2].
One of the implementations of IoC as applied to dependency management is dependency injection (eng. Dependency injection ) [2] [3]. Dependency injection is used in many frameworks called IoC containers.
When compared with lower-level technologies, an IoC container is a linker that collects OOP objects (class instances) rather than object files during program execution. Obviously, to implement such an idea, it was necessary to create not only the linker, but also the factory that produces the objects. The analogue of such a linker (naturally, more functional) is the compiler, one of the functions of which is the creation of object files. There is nothing new about the idea of linking the program during execution. Providing the programmer with the tools to implement dependencies gave much more flexibility in development and convenience in testing the code [4].
All approaches based on inversion of control suffer from the following two disadvantages [5]:
Comments
To leave a comment
Object oriented programming
Terms: Object oriented programming