AspectJPrecedenceComparator.java | Class | Orders AspectJ advice/advisors by precedence (not invocation order).
Given two pieces of advice, a and b :
- if
a and b are defined in different
aspects, then the advice in the aspect with the lowest order
value has the highest precedence
- if
a and b are defined in the same
aspect, then if one of a or b is a form of
after advice, then the advice declared last in the aspect has the
highest precedence. |