Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AspectJ aspects ordering

Tags:

java

aop

aspectj

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.

like image 532
VladislavLysov Avatar asked Aug 14 '13 10:08

VladislavLysov


1 Answers

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

like image 183
kriegaex Avatar answered Nov 14 '22 13:11

kriegaex