Types of Dependency Injection in Spring Framework

Posted Posted in Spring, Spring Core

Types of Dependency Injection in spring framework: There are basically two types of dependency injection which are – Setter Injection. Constructor Injection. There are generally three types of dependency which we inject: Dependent Object(Class object). String and int, long…etc(primitive types). Collections(List,Set,Map…etc). Here the “types of dependency which we inject” are basically the types of argument […]

What is Dependency Injection?

Posted Posted in Spring, Spring Core

Dependency Injection: It’s a design pattern in which we pass an¬†object as an argument to a method or constructor of a class at run-time, rather than creating the object inside the constructor or method of a class, hence making our code loosely coupled. Note For Beginers: Don’t worry if you didn’t understand the above description, […]

What is Spring Framework

Posted Posted in Spring, Spring Core

Spring Framework is a Lightweight, Open source Application Container that supplies many features such as Dependency injection, AOP(Aspect Oriented Programming), Transaction management and much more to build a loosely coupled, Lightweight, Simple and Easily Testable java application. Note: Don’t worry if you didn’t understand the above description because of the terms like Application Container, Dependency […]