AspectJ aspects ordering

aop, aspectj, java

Solution

`@DeclarePrecedence`is what you want to use in @AspectJ style, if native syntax is not your coding style of choice.

Problem

I have 2 aspects classes with the same point cut, but differences advices. I need to execute first one and then the other aspect. I can not use Spring "@Ordered" annotation, because I'm use pure aspectJ.

Original source