What are the Different Types of IoC (dependency Injection

There are three types of dependency injection: Constructor Injection(e.g. Spring): 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. In advanced Java, especially in the context of frameworks like Spring, Inversion of Control (IoC) is often associated … Read more

In your Experience, what do you don’t like About Spring? Are there any Pitfalls

Spring has become very huge and bulky. So, don’t over do it by using all its features because of the hype that Spring is good. Look at what parts of Spring really provides some benefits for your project and use those parts. In most cases, it is much better to use proven frameworks like Spring … Read more

In your Experience, why would you use Spring Framework

Spring has a layered architecture with over 20 modules to choose from. This means, use what you need and leave what you don’t need now. Spring simplifies JEE through POJO programming. There is no behind the scene magic in Spring as in JEE programming. POJO programming enables continuous integration and testability.   Spring framework’s core … Read more

What do you Understand by the Terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) Container

Dependency Inversion Principle (DIP) is a design principle which is in some ways related to the Dependency Injection (DI) pattern. The idea of DIP is that higher layers of your application should not directly depend on lower layers. Dependency Inversion Principle does not imply Dependency Injection. This principle doesn’t say anything about how higher la yers know what … Read more