SPRING FRAMEWORK
INTRODUCTION
What is a Frame Work?
1. A Frame work is a group of predefined classes, which comes to the form of a set of JAR files.
2. A Frame work is not a new technology but it is an abstraction layer on the top of existing technology.
3. A Frame work is a special kind of technology of software, which reduces by providing common logic required for applications automatically.
4. A Frame work is software for creating (or) developing java application (or) projects quickly and efficiently.
2. A Frame work is not a new technology but it is an abstraction layer on the top of existing technology.
3. A Frame work is a special kind of technology of software, which reduces by providing common logic required for applications automatically.
4. A Frame work is software for creating (or) developing java application (or) projects quickly and efficiently.
What is the difference between an IDE and a Frame work?
1. IDE’s are not built on top of any technologies but IDE’s allows us to develop any technology (or) frame work created applications.
2. A Frame work is built on top of some existing technologies.
Why Spring Frame work?
Before, spring frame work introduced there were already frame works like struts, hibernate etc… in the market and for business layer development EJB technology is used.
By Working with EJB technology, the java developers faced the following problems.
1. EJB needs multiple files Creation for implementing Business logic. Creating multiple files increasing, Burden on java developers.
2. EJB always need server, without server we can’t use EJB, EJB runs in server side.
3. While performing testing, if testing fails then after modifying the EJB, we need to recompile, reload, and then we need to restart the server to be repeated again, it is time consuming and Burden process on a developer.
4. EJB’s are very heavy weight components and lot of code creation requires is manually.
5. Actually EJB’s are given to solve complex problem but ejb technology itself is complex.
In order to overcome the problems raised by EJB technology, a former employee of sun micro systems introduced (or) created spring frame work. Spring frame work is created by Rod Johnson as an alternative for EJB technology.
What is a Spring Frame work?
A spring frame work is an abstraction layer on top of existing technologies like JDBC, SERVLET, JSP, EJB, JMS etc... For developing java and J2EE applications.
(Or)
Spring frame work is a modular and complete frame work used for creating java and J2EE applications. Modular and complete means we can develop either a particular one layer application spring (or) we can develop entire java project in spring frame work.
Spring is a light weight, an open source, IOC(inversion of control) based and Aspect oriented programming(AOP) frame work, used for creating stand alone, web, distributed enterprise application on java.
Spring Frame work is a good frame work for business layer Application because of following three reasons.
1. Simplicity
2. Testability
3. Loosely-coupled
Visitors