Design and implementation of a dynamic Data internationalization framework based on AOP

Source: Internet
Author: User
Tags aop

The development of Internet has promoted the communication of the whole world, it needs to develop the WEB application that satisfies the requirements of different regions ' language, culture and living habits, therefore, the internationalization of software has become the problem that must be solved. At home and abroad, there are some deficiencies in the internationalization method:

Existing Dynamic Data internationalization solutions are not easy to migrate and reuse.

There is no out-of-the-box Dynamic Data internationalization solution or framework.

In view of the above problems, we need to propose a solution of dynamic data internationalization.

In order to build an internationalized WEB application in a short time, it is necessary to design an internationalized development framework that is easy to understand and maintain. The purpose of this paper is to extract the common operations related to internationalization, and to generate a framework of WEB application internationalization based on Spring lightweight framework, which simplifies the realization of system internationalization.

The goals are:

Make the internationalization framework available to relational databases or object relational databases.

The internationalization-related common operations are extracted to the aspect (Aspect), so that programmers can focus on the core business logic to write, do not need to consider a specific country \ language environment, simplifying development.

The new framework is easy to configure.

The code of the framework can be reused, which can effectively improve the system development efficiency.

Design and implementation of Dynamic Data internationalization framework model

Overall design

This framework is based on the Java EE three-tier architecture (UI layer, logical layer, and persistence layer), as shown in Figure 1. All levels should follow the Unicode guidelines, that is, the internal coding using Unicode standards, b/s architecture recommended the use of UTF-8 coding.

Figure 1. The general logic framework of internationalization based on B/s

Figure 2. Dynamic Data Internationalization Framework Design

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.