Please read https://www.eclipse.org/aspectj/doc/next/devguide/ltw-configuration.html and search for the term "precedence". -- Alexander Kriegisch http://scrum-master.de
> Am 05.06.2014 um 13:07 schrieb 马leon <tutuf...@hotmail.com>: > > Hi, > > > Assuming I have a method: > > public void sayHello(){ > > System.out.println("Hello world") > > } > > > I'd like to have a nested round advice interception like: > > > System.out.println("Begin doA()") > > System.out.println("Begin doB()") > > sayHello() > > System.out.println("End doB()") > > System.out.println("End doA()") > > > If possible, I'd like the aspect definition for doA and doB are separated. > > So, I can config the weaving behavior optionally with aop.xml if applicable, > like: > > case 1: only use doB > > System.out.println("Begin doB()") > > sayHello() > > System.out.println("End doB()") > > > case 2: only use doA > > System.out.println("Begin doA()") > > sayHello() > > System.out.println("End doA()") > > > case 3: switch the sequence > > System.out.println("Begin doB()") > > System.out.println("Begin doA()") > > sayHello() > > System.out.println("End doA()") > > System.out.println("End doB()") > > > > Any code samples are welcome. > > > Thanks > > Leon > > > > > > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users