The seven modules of the Spring framework

Spring is an open source framework created to address the complexity of enterprise application development. One of the chief advantages of the Spring framework is its layered architecture, which allows you to be selective about which of its components you use while also providing a cohesive framework for J2EE application development.

The Spring framework is a layered architecture consisting 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 the following figure.

spring_framework3.gif

Each of the modules (or components) that comprise the Spring framework can stand on its own or be implemented jointly with one or more of the others. The functionality of each component is as follows:

* 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: The Spring AOP module integrates aspect-oriented programming functionality directly into the Spring framework, 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.

* 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 to its generic DAO exception hierarchy.

* Spring ORM: The Spring framework plugs into several ORM frameworks to provide its Object Relational tool, including JDO, Hibernate, and iBatis SQL Maps. All of these comply to 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: The Model-View-Controller (MVC) framework is a full-featured MVC implementation for building Web applications. The MVC framework is highly configurable via strategy interfaces and accommodates numerous view technologies including JSP, Velocity, Tiles, iText, and POI.

Spring framework functionality can be used in any J2EE server and most of it also is adaptable to non-managed environments. A central focus of Spring is to allow for reusable business and data-access objects that are not tied to specific J2EE services. Such objects can be reused across J2EE environments (Web or EJB), standalone applications, test environments, and so on, without any hassle.

Reference: http://www-128.ibm.com/developerworks/library/wa-spring1/

Technorati tags: Spring Framework

43 thoughts on “The seven modules of the Spring framework

  1. You don’t want to linger until the last minute to
    make your plan so I would recommend reading the waterway guidebook in advance.
    If you like antiques you have to ask for help-
    we have many but only the locals know where they hide.
    Players doing solo or non-healing players benefit most from this profession as they
    can replenish themselves with food.

  2. Appreciating the hard work you put into your site and detailed information you
    offer. It’s great to come across a blog every once in a while that isn’t the same out
    of date rehashed material. Wonderful read! I’ve saved your site and I’m including your RSS
    feeds to my Google account.

  3. Having read this I thought it was rather enlightening. I appreciate you taking the time
    and effort to put this article together. I once again find myself
    personally spending way too much time both reading and posting comments.
    But so what, it was still worthwhile!

  4. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get setup?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% certain. Any tips or advice would be greatly
    appreciated. Cheers

  5. Somewhere in the middle is your best option as it is not too expensive nor
    will the surgeon take an excessive amount of time to complete the
    job. However it creates a subtle natural-looking result that doesn’t appear too overdone.

    Miami won’t need to rely heavily on Lewis, but he’ll increase
    the team’s depth and provide yet another scoring option on arguably the league’s most dangerous offensive
    team.

  6. A good place to start is by choosing the method of cabinet construction first: stock, semi-custom, or custom.
    Will any walls, especially load bearing walls, have
    to be knocked down. These pieces of real estate are often purchased by individuals as
    investment properties.

  7. It is essential to maintain these objects, for they may be very essential.
    Furnture done from poisonoujs substances may start an indoor
    air peculiarity badly. Wood Furniture has been inn vogue and then therfe are several great places
    where you could buuy modern, contemporary designs.

  8. From her severed body, Marduk made the heaven and also the
    earth. One on the first was the Active – State Komodo integrated development environment that, you start
    wifh version 3. The over the internet dqta management and analysis system
    using thhe appropriate functionality and automation for communication will help
    all the artners on the ECO system too become connected online i.

Leave a reply to towing San Diego Cancel reply

Design a site like this with WordPress.com
Get started