Wu Yuxiong - a natural framework for the development of natural JAVA SPRING study notes: Spring Architecture Detailed

Spring Framework using a layered architecture, been divided into a plurality of modules according to different functions, these modules can be divided into Data Access / Integration, Web, AOP, Aspects, Messaging, Instrumentation, Core Container and Test

 

 

Next, the effect of these modules are briefly described.
The Data Access 1. / Integration (Data Access / Integration)
Data Access / integration layer includes a JDBC, ORM, OXM, JMS and Transactions module is specifically described below.
JDBC module: provides a JDBC abstraction layer, greatly reduced the encoding operation of the database during development.
ORM module: popular object-relational mapping of the API, including JPA, JDO, Hibernate provides iBatis and the integration layer.
OXM module: provides a support for the object / abstraction layer mapping XML implementation, such as JAXB, Castor, XMLBeans, JiBX and XStream.
JMS Module: refers to the Java Message Service, the information contained in the function of production and consumption.
Transactions Transaction module: support for programming and declarative transaction management to achieve special interface class, and for all of POJO.
2 . Web Modules
Spring layer comprising a Web Web, Servlet, Struts Portlet and components are detailed below.
Web module: provides basic Web development integrated features, such as multi-file upload function, IoC container initialization Servlet listener as well as the use of Web application context.
Servlet module: Spring Model - View - Controller (MVC) implement a Web application.
Struts modules: Spring applications included in the support classes, integrates classic Struts Web layer.
Portlet Module: provides the use of MV C achieved in the Portlet environment, similar to Web -Servlet module functions.
3 . Core Container (core container)
Spring's core container is the basis for other modules built by the Beans module, Core core module, Context context module and Expression Language expression language modules, are detailed below.
Beans Module: provides a BeanFactory, the factory is the classic mode of realization, Spring will manage objects called Bean.
Core core modules: Providing basic components of the Spring framework, including IoC and DI function.
Context context module: based on the core module and Beans above, it is defined and configured to access any media object. Focus context ApplicationContext interface module.
Expression Language modules: query and operation of powerful expression language runtime object graph.
4 Other modules
There are other modules Spring AOP, Aspects, Instrumentation and Test modules are detailed below.
AOP module: Aspect-oriented programming is provided, the method allows the definition and interceptors starting point, the code separated by function, to reduce the coupling.
Aspects module: provides AspectJ integration, it is a powerful and sophisticated aspect-oriented programming (AOP) framework.
Instrumentation Module: provides implementation support, and class loader class tool can be used in a particular application server.
Test Module: Spring support assembly, use or TestNG JUnit test frame.

 

Guess you like

Origin www.cnblogs.com/tszr/p/12128696.html