Spring

What is Spring?

Spring is an Open source Project founded by Rod Johnson. It was developed by Rod Johnson and Juergen Hoeller.

  • Is a containerJava object.
  • It has been designed to simplify the Development of 3-tier J2EE.
  • It integrates different standards.
  • Provides huge productivity gain.

In 2005, Spring has become a leading frameworks Java/J2EE application (Version 2.0 of Spring).

« The Spring Framework does not aim to replace J2EE middle tier services as a whole. It is an application framework that makes accessing low-level J2EE container services easier. Furthermore, it offers lightweight alternatives for certain J2EE services in some scenarios, such as a JDBC-based transaction strategy instead of JTA when just working with a single database. Essentially, Spring enables you to write applications that scale down as well as up. » Rod Johnson (expert one on one J2EE development without EJB)

Spring provides :

  • a type of container inversion of control (IoC)
  • a framework Aspect Oriented Programming (AOP)
  • layers of abstraction.

Spring Solution:Delivers J2EE easier to use

  • Provides the best solution IoC.
  • Provides AOP implementation in Java.
  • It is an alternative to EJB.
  • Completely portable across all application servers.

Spring provides several alternatives for integration data with:

  • Hibernate,
  • JDO,
  • Oracle TopLink
  • iBATIS SQL Map

The MVC web framework

  • Controller :Returns ModelAndView type of object that contains the model, a View object
  • Model:Represented by a collection of named objects being rendered
  • View :Transforms data collection in an output format (JSP, XSLT, JasperReports, Excel, PDF,..)

 

Using Spring makes applications :

  • Better structured.
  • Scalable and easy to maintain: flagrant decrease coupling between the different software components of the project.
  • Spring‘s strengths make it a development environment very powerful.

Leave a comment