ASPECTJ Pointcut indicator supported by SPRINGAOP

Source: Internet
Author: User

When you try to use ASPECTJ other indicators in spring, the IllegalArgumentException exception is thrown.

When we look at these spring-supported indicators shown above, be aware that only the execution indicator is the only execution match, while the other indicators are used to limit the matching. This shows that the execution indicator is the most important indicator we use when writing the pointcut definition, and we use other indicators to limit the matching tangent points.

The pointcut expression in Figure 4.4 indicates that a notification will be triggered when the instrument play method executes.

We use the execution indicator to select instrument's play method, which begins with the * number, which identifies the return value type of the method that we do not care about. Then we specify the fully qualified class name and the method name. For a list of method parameters, we use: Identify the pointcut to select any play method, regardless of the method's entry parameters.

ASPECTJ Pointcut indicator supported by SPRINGAOP

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.