Aspect oriented Programming (AOP)

Source: Internet
Author: User

Cut-off refers to things that have the same commonality in the code you write in different parts of the project. It may be a special way of handling exceptions in your code, recording method calls, time processing, re-executing some methods, and so on. If you do not use any of the class libraries that face-cutting programming to do these things, you will leave some very simple and repetitive code in your entire project that will make your code difficult to maintain. For example, some methods in your business logic layer need to be logged, some exceptions need to be processed, some executions need to be timed, database operations need to be retried, and so on.

One feature of crosscutting concerns is that they often occur in many of the core concerns and are essentially similar everywhere. such as permission authentication, logging, transaction processing.

The role of AOP separates the core concerns from the crosscutting concerns in the separation system.

AOP technology is based on the reflection mechanism and dynamic agent mechanism of language.

Aspect oriented Programming (AOP)

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.