-
1. Re: Poincut Expression
kabirkhan Sep 9, 2010 7:32 AM (in response to bghosh1)You need to specify the return type for methods. So
"execution(* com.mycompany.*->*(..))"
should work (notice the extra '* ' before 'com.mycompany'
-
2. Re: Poincut Expression
kabirkhan Sep 9, 2010 7:34 AM (in response to kabirkhan)BTW you should use the user forums for this, not the design forums. I'm moving this thread there
-
3. Re: Poincut Expression
bghosh1 Sep 9, 2010 8:30 AM (in response to kabirkhan)Kabir
Thanks..The issue finally got resolved after your answer.. though I tried the same expression earlier but was getting some error.
Once I saw your answer, I looked back at the error and saw I was getting stackoverflow exception. The reason behind is
that since it was a small POC, I kept the logger aspect right under package com.mycompany and hence the log method was getting called recursively.
I was so stupid to do that.
Initially I did not look at the error as I did not have enough confidence on the correctness of that expr.
Sorry for bothering you and placing the discussion in wrong forum.