Home » Spring » Spring Framework Introduction

Spring Framework Introduction

Spring is a light weight and open source framework. Spring is a complete and a modular framework,and it can be used for all layer implementations for a real time application unlike struts [ only for front end related ] and hibernate [ only for database related ].With spring we can develop all layers of a real time java application.

The Spring framework comprises several modules such as IOC, AOP, DAO, Context, ORM, WEB MVC etc.

Spring framework is said to be a non-invasive means it doesn’t force a programmer to extend or implement their class from any predefined class or interface given by Spring API, in struts we used to extend Action Class that’s why struts is said to be invasive

Spring Framework Modules:

The Spring framework consists of seven well-defined modules. The Spring modules are built on top of the core container, which defines how beans are created, configured, and managed, as shown in following figure.

Spring Framework

1. The core container :

The Spring Core container contains core, beans, context and expression language (EL) modules.The Core package is the most fundamental part of the framework and provides the IoC and Dependency Injection features.

2. Spring context module :

The Spring context is a configuration file that provides context information to the Spring framework. The Spring context includes enterprise services such as e-mail, JNDI, EJB, internalization, validation, scheduling and applications life cycle events.

3. Spring AOP module :

The Spring AOP module allows a software component to be decorated with additional behavior, through its configuration management feature. As a result you can easily AOP-enable any object managed by the Spring framework. The Spring AOP module provides transaction management services for objects in any Spring-based application. With Spring AOP you can incorporate declarative transaction management into your applications without relying on EJB components.

4. Spring DAO module :

The Spring DAO module provides a JDBC-abstraction layer that reduces the need to do tedious JDBC coding and parsing of database-vendor specific error codes.

5. Spring ORM module:

Spring provides integration with ORM mapping tools like Hibernate, JDO and iBATIS. Spring transaction management supports each of these ORM frameworks as well as JDBC.

6. Spring Web module :

The Web context module provides basic web-oriented integration features 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.

7. Spring MVC framework module :

Spring's MVC package provides a Model-View-Controller (MVC) implementation for web-applications.

Previous Next Article
comments powered by Disqus