Monday, February 28, 2011

How many modules are there in Spring? What are they?


 How many modules are there in Spring? What are they?
Spring comprises of seven modules. They are.
·   The core container:
The core container provides the essential functionality of the Spring framework. A primary component of the core container is the BeanFactory, an implementation of the Factory pattern. The BeanFactory applies the Inversion of Control (IOC) pattern to separate an application's configuration and dependency specification from the actual application code.
·   Spring context:
The Spring context is a configuration file that provides context information to the Spring framework. The Spring context includes enterprise services such as JNDI, EJB, e-mail, internalization, validation, and scheduling functionality.
·   Spring AOP:
Spring supports Aspect oriented programming which enables us to perform some desired action just before or after the execution of the specified method
·   Spring DAO:
The Spring JDBC DAO abstraction layer offers a meaningful exception hierarchy for managing the exception handling and error messages thrown by different database vendors. The exception hierarchy simplifies error handling and greatly reduces the amount of exception code you need to write, such as opening and closing connections. Spring Dao’s JDBC-oriented exceptions comply with its generic DAO exception hierarchy.
·   Spring ORM:
Spring provides best Integration services with Hibernate which comply with Spring's generic transaction and DAO exception hierarchies.
·   Spring Web module:
The Web context module builds on top of the application context module, providing contexts for Web-based applications. As a result, the Spring framework supports integration with Jakarta Struts. The Web module also eases the tasks of handling multi-part requests and binding request parameters to domain objects.
·   Spring MVC framework:
Spring comes with MVC web application framework, built on core Spring functionality. This framework is highly configurable and accommodates multiple view technologies like JSP, Velocity, and Tiles. But other frameworks can be easily used instead of Spring MVC Framework.

No comments:

Post a Comment