order

The execution of multiple facets is performed according to the smaller the order value, and multiple notification points of one facet are also executed in a certain order.

Single cut

A slice order is relatively simple, but it is divided into abnormal and normal conditions.

Normal order

normal

  1. @Around of before business
  2. @Before notification
  3. Method
  4. @Around of after business
  5. @After notification
  6. Execute @AfterReturn notification

Abnormal order

abnormal

  1. @Around of before business
  2. @Before notification
  3. Method
  4. @Around of after business
  5. @After notification
  6. Execute @AfterThrowning notification

Multi-section

Multi-section

The multi-section has been normal as an example:

  1. Aspect1 @Around of before business
  2. Aspect1 @Before notification
  3. Aspect2 @Around of before business
  4. Aspect2 @Before notification
  5. Method
  6. Aspect2 @Around notification of after business
  7. Aspect2 @After notification
  8. Aspect2 executes @AfterReturn notification
  9. After1 @Around of after business
  10. Aspect1 @After notification
  11. Aspect1 executes @AfterReturn notification
/docs/2.x/en/aop/order.html
progress-bar