Pages Navigation Menu

Coding is much easier than you think

Spring framework architecture

Spring has a layered architecture which consists of various modules. All the modules are built on top of the core container and are mostly independent. This way, the developer is free to use only the modules that are needed for the particular requirements. The modules in Spring framework are grouped into Core Container, Data Access/Integration, Web, AOP (Aspect Oriented Programming), Instrumentation, and Test.

spring_Architecture

 

CORE CONTAINER

 

  • Core and Beans provide the most fundamental part of the framework including IOC container and Dependency Injection(DI)
  • Context provides a means to access objects in a framework-style manner. It inherits its features from the Beans module and adds support for internationalization (using, for example, resource bundles), event-propagation and resource-loading,
  • Expression Language(EL) supports setting and getting property values, property assignment, method invocation, accessing the context of arrays, collections and indexers, logical and arithmetic operators, named variables and retrieval of objects by name from Spring’s IoC container.

 

DATA ACCESS/INTEGRATION

 

  • JDBC[Java DataBase Connectivity] provides a JDBC abstraction layer
  • ORM[Object Relational Mapping] is responsible for Database access and related activities. It provides integration layers for popular object-relational mapping APIs, including JDO, Hibernate
  • OXM [Object/XML Mapping] provides an abstraction layer that supports Object/XML mapping implementations for JAXB, Castor, XMLBeans, JiBX and XStream.
  • JMS [Java Messaging Service] provides features for creating and consuming messages.
  • Transaction provides support to programmatic and declarative transaction management for classes that implement special interfaces and for all the POJOs (Plain Old Java Objects)

 

AOP

 
It is used as a replacement for EJB container and is much simpler than EJBs. The most important service provided by AOP is declarative transaction management. The AOP implementation allows the developer to define point-cuts and method interceptors to keep the ‘concerns’ apart.  This clearly enables decoupling the functionality of the code that needs to be separated.

 

INSTRUMENTATION

 
It  provides class instrumentation support and also class loader implementations to be used in a certain application servers. It also exposes performance and resource utilization metrics for the Spring container and thus facilitates run time control over the spring container.

 

WEB

 
The WEB module consists of Web, Web-servlet, Web-porlet, Web-struts as sub-modules.

  • Web provides the basic web-oriented integration features such as multi part file upload functionality , a web-oriented application context and the  initialization of the IoC using servlet listeners and.
  •  Web-Servlet  contains Spring’s  MVC for the web applications. It is a part of Spring’s web application development stack.
  • Web-Struts helps in integrating a Struts web tier within a Spring application.
  • Web-Portlet typically mirrors the functionality of the web-servlet module. It provides the MVC implementation for portlet environment.

 

TEST

 
Supports testing of Components using Junits.

 

12 Comments

  1. Very good post. My spouse and i understand one thing new in addition to challenging upon weblogs When i stumbleupon each and every day. It will almost always be interesting to see by means of articles from different creators and also make use of a little using their company internet sites.

  2. I just want to say I’m new to blogs and truly liked you’re page. Almost certainly I’m likely to bookmark your blog post . You definitely have fantastic writings. Thanks for sharing your blog site.

  3. Can I just say what a relief to locate a person who truly knows what theyre talking about on the net. You certainly know learn how to bring an problem to light and make it imperative. Additional people today must read this and realize this side of the story. I cant believe youre not more popular mainly because you surely have the gift.

  4. An fascinating discussion is worth comment. I believe which you should write additional on this subject, it could not be a taboo subject but commonly men and women are not enough to speak on such topics. To the next. Cheers

  5. It is hard to locate knowledgeable people today on this subject, but you sound like you know what you are talking about! Thanks

  6. It is best to take part in a contest for one of the preferred blogs on the internet. I will advise this web site!

  7. I’d have to check with you here. Which is not some thing I typically do! I get pleasure from reading a post that may make individuals believe. Also, thanks for permitting me to comment!

  8. Things you brought up made . But, think about this, lets suppose you added a little bit more? I mean, I dont want to teach how you can run your site, however what if you actually added more stuff that can easily grab peoples awareness? Simply as a online video or maybe a graphic or even few for getting your readers excited concerning what you are talking about.

    • Thank you for your valuable feedback. We’ll definitely work towards it.

  9. I’m impressed, I have to say. Really rarely do I encounter a weblog that’s both educative and entertaining, and let me tell you, you’ve hit the nail on the head. Your concept is outstanding; the concern is something that not enough people are speaking intelligently about. I’m very pleased that I stumbled across this in my search for something relating to this.

  10. Thank you.. !! Keep visiting our site often for more such informative reads !!

  11. Can I just say what a relief to acquire someone who in fact knows what theyre talking about online. You absolutely know how you can bring an problem to light and make it very important. A lot more persons really need to read this and have an understanding of this side of the story. I cant think youre not extra well-known due to the fact you definitely have the gift.