Search code examples
javaaopaspectj

AspectJ aspects ordering


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.


Solution

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