Spring
Today we all know that Spring is being widely used in enterprise applications because of its easy of development and layered architecture. Which enable us to integrate its various layers with other technologies and API(s), like - JMS, MVC, Junit, EJB, Hibernate and so on. This framework is very popular because of its great feature of Dependency Injection (DI). Let us look a simple example to understand DI:- I have a class A (singleton class) that has some parameters that sets at start up time. Also. I have a class B (prototype) that needs the parameters in class A. Now, I am trying to figure out how to get the instance of A which is to be use in B later sometime. class A { //singleton class String a; } class B { //prototype class A a; String b; public B createB() { //for method lookup return null; ...