You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bianca Ghiurutan edited this page Feb 7, 2018
·
4 revisions
IoC Container
To understand what an IoC (Inversion of Control) Container is, we first need to understand what Dependency Injection is.
Dependency Injection is a design pattern used for making decoupled software modules (classes, generally speaking). DI pattern implements Dependency Inversion Principle, which is the D in SOLID.
IoC (Inversion of Control) Container (a.k.a. DI Container) is a framework for implementing automatic dependency injection. It manages object creating and its lifetime and also injects dependencies to the class.
In conclusion, an IoC Container implements the DI pattern for us, omitting the need to manually create our own code for decoupling our classes.