[Translation]3-spring Architecture

Source: Internet
Author: User

Spring could have been designed as a "one-stop" framework (fat jar, Uber jar), but not for spring developers, but for modular

Way to develop spring so that users can introduce the required spring modules to the actual situation without having to introduce other modules. In this section we will

Describes all the modules in spring.

Overview

The Spring4.1.6 consists of 20 modules, as follows:

Core Container (Central container)

Core container includes core module, Beans module, context module, Spel expression module, respectively, as follows:

    • Core: Provides framework-based functionality such as bytecode manipulation tools, etc.
    • Beans: The implementation class beanfactory for the early spring IOC container is included in the module
    • context: Built on core modules and beans modules, the spring IOC container is primarily available applicationcontext
    • spel: Expression language, you can query and manipulate the object graph at run time.
Data access/integration (acquisition/integration)

Spring's data acquisition/integration includes JDBC module, ORM module, OXM module, JMS module, transactions module. The functions are as follows:

    • JDBC: Provides a JDBC abstraction layer that frees users from writing complex JDBC code and facilitates the management of transactions.
    • ORM: Provides features that integrate with the mainstream ORM (Object Relational Mapping) framework, such as Hibernate, JDO, and so on, as follows:
    • OXM: Provides features that inherit from the mainstream OXM (object, XML mapping) framework, such as XStream, as follows:
    • JMS: Provides the ability to generate and consume JMS messages
    • transaction: Transaction processing capability, support declarative transactions
Web

Spring's web mainly includes web modules, WEBMVC modules, Webmvc portlet modules, websocket modules. The functions are as follows:

    • Web: Provides the basic functionality of the Web, such as file uploads, etc.
    • WEBMVC: The implementation of Spring-mvc,spring's MVC framework
    • webmvc portlet: Spring's Portal component package
    • WebSocket: Spring Implementation Package for WebSocket (defined in HTML5 for HTTP bidirectional communication)
Other

In addition to the modules listed above, there are test modules, AOP modules, aspects modules, instrumentation modules, and messaging modules. As follows:

    • AOP: section-oriented programming modules available in spring
    • aspects: Provides inheritance with ASPECTJ. AspectJ is another very bull AOP framework
    • Instrumentation: can be used for monitoring objects in spring containers
    • Messaging: Message service. Support Stomp Protocol
    • Test: Testing the module to test the spring component using the JUnit or TESTNG Unit test framework.

[Translation]3-spring Architecture

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.