Bootstrap your Spring Application – Bean Collaboration

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". Now we know about the beans and the containers . We defined couple of beans as well. But what is an application good for if the beans do not interact? This post describes how to bootstrap your spring application. Almost all applications will need beans to collaborate with each other and deliver some results. And this is achieved using Dependency Injection. Recalling our discussion from the Inversion of Control post, if a con...
Read More

Spring Application Configuration using Annotations

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". In the last post we learnt about Spring XML configurations, specially defining beans in XML using all the bean instantiation methods. In this post, let us try to take one more step and learn the Annotations based configurations. I have described annotations in one of the previous post. Spring Application Configuration using Annotations As I mentioned in earlier posts that configurations can be defined in many ways like XML...
Read More

Spring Application Configuration XML based

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". At this point I believe it is appropriate to introduce Spring application configuration. In this post, we will also need the concepts learnt so far. I have made sure that you won't need anything which is not discussed so far. Writing a Spring Application Configuration A set of one or more configuration metadata makes up a Spring configuration. I have described the configuration metadata in this post.  The configuration metada...
Read More

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