DI
DI
Injection
Author: ToanND
Introduction
Normally, the flow of the program logic is determined by objects that are
bound to one another. With the inversion of control, the flow depends on
the defined abstractions to be implemented that is built up during
program execution. This principle can be achieved by techniques like
dependency injection. In IoC, the code could also be linked statically
during compilation to the defined interface functions, but finding the
implementation of the function to execute by reading its description
from external configuration instead of with a direct reference in the code
itself.
How it Works