TSM - Guice framework
Mădălin Ilie
- Cluj Java Discipline Lead
Dependency Injection (DI) is a specialized form of Inversion of Control(IoC) – a broader OOP concept where objects are coupled by an external source at runtime – usually a container – also referred as IoC container. Using IoC we can select specific implementation of the dependencies at runtime which is a major advantage when dealing with Unit Testing for example. Injecting mock dependencies becomes trivial leading to easily test the application in isolation.