Types of Dependency Injection in spring framework

Posted Posted in Uncategorized

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 […]

Dependency Injection in Spring Framework

Posted Posted in Spring

Dependency Injection in Spring Framework – Dependency Injection can be achieved by Spring Framework using XML configuration, pure JAVA based configuration and implicit bean discovery with Autowiring. Methods to implement Dependency Injection: Explicit configuration in XML. Explicit configuration in JAVA. Implicit bean discovery and Autowiring. Dependency Injection in Spring Framework using XML It’s one of the ways […]

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 […]