| 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. If neither a nor b is a
form of after advice, then the advice declared first in the aspect has
the highest precedence.
Important: Note that unlike a normal comparator a return of 0 means
we don't care about the ordering, not that the two elements must be sorted
identically. Used with AspectJ PartialOrder class.
author: Adrian Colyer author: Juergen Hoeller since: 2.0 |