Program execution Process (rough)

Source: Internet
Author: User

program execution Process (rough) the user requests the foreground to do the JS rule verification (good user experience) according to certain rules for the data submission (data not encapsulated submissions and data encapsulation after the submission) control layer to receive data1, the non-null data, rule validation | |rule validation can read configuration files2, processing session information3. Verification of Permissions | |you can use a rights interceptor or filter # to distinguish between data sources::: From user input (input data), from System generation (current time), default value in the business layer set to ensure the portability of the business # before invoking the business Make sure that the information you need for your business has been assigned and rules validated #4, invoking the relevant business for data processing,5and the corresponding jump control according to the result of business processing.||execution result identification can be set based on the processing results of the calling business||then read the corresponding configuration file for the specified jump and data response mode on the control layer set the abstract parent class, interface, sub-class sharing method design, Reduce code reuse between the control layer and the business layer using the factory design pattern to connect the Servicefactory business factory The call agent avoids the repetitive serviceproxy inheritance of some code that the business layer does not need to focus on the topic (typically: Database open and close)  At the same time, consider the transaction processing business layer can also be based on the need to establish a corresponding level of abstraction class, interface business layer and data layer using dynamic Factory design mode to connect daofactory using reflection read configuration file can achieve the adaptability of the program between different database migration such as: Mysql5vodaoimpl, Oracle11vodaoimpl

Program execution Process (rough)

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.