nType 1 IOC also called Interface Injection
nIn Type 1 IOC the injection is done though an
interface. The
interface will define the injection method and the implementation class has to implement this
interface and provide
concrete implementation for the injection method.
nType 2 IOC also called Setter Injection
nIn Type 2 IOC the injection is done via a
setter method. Type
2 IOC uses setter methods to get the dependent classes it needs.
nType 3 IOC also called Constructor Injection.
nIn Type 3 IOC implementing class defines a
constructor to get all
its dependents. The dependent classes are defined in the constructor arguments.