Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Framework AOP|Adviced method call inside First Advice results in execution of second advice

atul kumar
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Advice method --getMarket(...)

Advices and their order...---

public class DDSAdvice {....getMarket())

public class LimitAdvice {

public class EnergyAdvice {

I am calling Advice method --getMarket(...) inside DDSAdvice
which results in execution of LimitAdvice and EnergyAdvice as well..

any idea how to avoid it...
one way i have tried is use ---BaseDAO+.getMarket(..) && ! within(DDSAdvice)

but it doesnt work.

order of execution is DDSAdvice LimitAdvice EnergyAdvice LimitAdvice EnergyAdvice

any thoughts..Please advise
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic