Categories
Spring Spring Core

Lazy Initialization

The Term Lazy initialization means to initialize the Object When needed or when requested.  Spring IoC Container will create and initialize all the Singleton Beans while Creating the IoC Container itself.  If we don’t want to initialize our Bean at the time of Container initialization, we can use Lazy-Init concept in Spring.  Key Points IoC […]

Categories
Spring Spring Core

How Dependency Injection works in Spring

We saw What is DI and its different form of Injection in our Previous Post, here we look at how Spring Dependency Injection works in Detail with Diagrammatic Representation. Step 1 : ApplicationContext will be Created and Configured by Reading Configuration Meta-Data.  Step 2 :  ApplicationContext will create all the Beans defined in Configuration Meta-Data. […]

Categories
Spring Spring Core

Dependency Injection in Spring

Dependency Injection is a process to change the Binding of Objects from Compile time to Runtime. It focuses on creating loosely coupled objects and to make decoupling easier, Objects define their own dependent Objects and there will not be any tight-coupling between them. IoC container is responsible to create a Dependent objects and Inject where […]

Categories
Spring

Spring IoC Container

What is IoC Container ? Inversion of Control container is nothing but a set of Interfaces and Classes implemented using DI pattern and it is responsible for Instantiating, Assembling and Configuring the Beans that is defined in Configuration Meta-data. org.springframework.beans and org.springframework.context are the base package for Spring IoC container and BeanFactory, ApplicationContext are the […]