Author: dharam

Bean Instantiation Methods in Spring

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". The previous posts helped us build some understanding around the Spring beans. We also understood that a Spring application is all about wiring beans together and accomplishing tasks. Let us now learn about various bean instantiation methods in Spring. Bean Instantiation Methods in Spring There are multiple ways of instantiating beans and  you can instruct Spring to use the one which fits your needs. Bean Instantiation using...
Read More

Bean Life Cycle and Post Processors

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". This is the eighth post of the series. The previous post introduced beans in Spring, this post will take the discussion further and talk about bean life cycle and post processors. Bean Life Cycle All the beans in a Spring application, follow a life cycle. A bean life cycle can be defined as the stages of a bean's life. There are two phases in a typical bean life cycle. The initialization phase, and the destruction phase. Init...
Read More

Concept of Beans in Spring

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". This is the seventh post of the series. This post is dedicated for briefly introducing the concept of beans in Spring and related component to you. This is intentionally put here so that when I refer them in some detailed discussion, you will find it easy to co-relate. Of course we will discuss these components in length and breadth once again, as we move forward. Concept of Beans in Spring Beans in Spring adhere to the stand...
Read More

Setting up Development Environment for Spring

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". This is the sixth post of the series. As I promised, in this post we will learn how to setup the development environment for Spring development. As we will start writing some code snippets and talk about components of Spring, I would suggest you to take some time and setup your development environment and get ready for some action. Experience developers can skip this pose in case they already have the development environm...
Read More

What is Spring Framework?

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". This is the fifth post of the series. Alright! Let us try and answer the very famous question "What is Spring Framework?". What is Spring Framework? Spring Framework is a beautiful Implementation of Several Design Patterns presented in an abstracted way to an application developer. It is a light weight application development framework written in Java and suitable for Java based applications. A framework defines an abstrac...
Read More

Understanding the Inversion of Control

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". This is the fourth post of the series. The next important concept is Inversion of Control. In fact, Inversion of Control is the heart of Spring Framework. You might also have heard the short form which is IoC. This post is dedicated for understanding the Inversion of Control in detail. Inversion of Control The one core concept which is not optional in Spring is the “Inversion of Control”. Spring and many similar frameworks...
Read More

Understanding Annotations in Spring

Introduction This is a series and it would make a lot of sense if read in a sequence. You can find all the posts under the heading "Spring Beginners to Professionals". This is the third post of the series. The next important concept is Annotations. Recent versions of Spring Framework shifted to annotation based programming. Prior to version 3.0 majority of Spring configuration was done using XMLs. This post is dedicated for understanding Annotations so that we can have a better understanding of Spring Framework. Basics of Annotations An annotation is a form of syntactic metadata that can...
Read More