1.

What Are The Different Types Of Ioc (dependency Injection) ?

Answer»

There are three types of DEPENDENCY injection:
• Constructor Injection (e.g. Pico container, Spring etc): DEPENDENCIES are provided as constructor parameters.
• Setter Injection (e.g. Spring): Dependencies are assigned through JAVABEANS PROPERTIES (ex: setter methods).
• Interface Injection (e.g. Avalon): Injection is done through an interface.

There are three types of dependency injection:
• Constructor Injection (e.g. Pico container, Spring etc): Dependencies are provided as constructor parameters.
• Setter Injection (e.g. Spring): Dependencies are assigned through JavaBeans properties (ex: setter methods).
• Interface Injection (e.g. Avalon): Injection is done through an interface.



Discussion

No Comment Found