..


Sponsored Links

Introduction to Spring

Spring is an open source framework for developing Java applications in paritcolare applications to J2EE .

The first version of the framework was released in 2002 by Rod Johnson, then undergoing many changes that have taken this framework to be very much appreciated by the international community in 2006 and won a Jolt Productivity Award and a JAX Innovation Award.

Why use Spring?

Spring has many features that other frameworks do not have:

  • Modular: Despite being very large, thanks to its modular design you can choose to integrate some of its modules in our project. For this Spring is easily integrated in existing projects.
  • Lightweight: Spring is designed so that the dependencies within the framework of our business logic virtually nil, and if any easily isolated. For instaziare and \ or initialize objects in the framework do not have to implement specific interfaces or abstract classes.
  • Integrable: In Spring there are no package logging, connection pool, or O \ R mapping , since all these features are provided by other open source frameworks. Spring is not the aim of replacing them, but only to make them easier to use, through its tools.
  • Portable: An application written with Spring can be transferred seamlessly from one Application Server to another, for example, WebLogic, Tomcat, Resin, JBoss, Jetty, Geronimo and WebSphere.
  • POJO-based programming enabled: Spring allows us to develop a complete J2EE application usanso only POJOs , providing them with enterprise features in a non-invasive.
  • Test driven enabled: Spring allows us to write software that is easy to test, then it is an ideal framework for software that are written based on Test Driven Development .

After seeing the peculiarities Spring, let's see what additional benefits there are to use it:

  • Makes it possible to run a Java method in a trasazione, or make a remote method without having to interact with its API (eg JTA ).
  • The management services of the Spring configuration can be used in any architectural layer, and in any runtime environment.
  • Eliminates the proliferation of custom properties file. To understand the dependencies of a class, need only look at the manufacturer or its property. This is possible through the use of 'Inversion of Control and Dependency Injection, which will be discussed later.
  • Facilitates programming interfaces.
  • Unlike most other frameworks, Spring, focuses on providing simple and effective way to manage our business logic objects.
  • There autia to solve common problems of enterprise applications, making optional use of EJB . In this way we can choose to implemenrare interfaces in our business or our POJOs EJBs without affecting calling code. In addition to this Spring is also proposed as a suitable alternative to the same EJB, for many types of enterprise applications.
  • Provides a consistent framework for Data Access, is using JDBC , and other products using O \ R mapping, such as Hibernate or TopLink .

Spring Java Guide
E-Learning
Linux (Course) Linux (Course)
Complete guide to open-source system. From 49 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Ruby and Ruby on Rails (Course) Ruby and Ruby on Rails (Course)
Create software and Web applications with Ruby and RoR. From 39 €.
Sponsored Links