Tuesday, 8 October 2013

Spring Framework Architecture

Advertisement

Spring framework is a layered architecture where Spring 2.x is divided into 6 modules. So here i am going to explain all 6 modules one by one.


Spring Core Module: It provide the fundamental part of spring Framework like DI(dependency injection) and IOC(inversion of control). This Module contains the bean factory which is the implementation of factory pattern. Using these core functionality an interface ApplicationContext is developed using which we can able to access the beans.
 

AOP Module : Using Spring AOP(aspect oriented programming) you can add the cross cutting functionality on your service layer at run time. I will separate the reusable code and can be applied as a service on different points.

ORM Module : Spring does not provide it's own ORM implementations but it supports the integration with populer ORM(object relational mapping) tools like Hibernate, JDO,iBatis toplink etc.

DAO Module : Spring DAO(Data Access Object) It provides an abstraction for low level implementations. Rather than throwing a complicated specific database vendor errors it also maintain a hierarchy of exceptions.It uses either programmatic and declarative transactions.

JEE Module : It provides the support for EJB, JCA, and JMS etc. where JMS is used for asynchronous communication. JCA is use to establish the connection to the legacy systems.

Web Module : It comes with Spring MVC web framework. It also integrate the popular MVC framework like struts, JSF, WICKET etc.


EmoticonEmoticon