I am having trouble with building aspectJ expression. I would like to run my advice when any of "QueryUtil" method is invoked from class "Report".
For example: if we invoke QueryUtil.*() inside of Report.*() -> Advice is executed. If we invoke QueryUtil.*() from AnyOtherClass.* -> Advice is not executed.
I was thinking of cflow expression but still did not find a way to write it. I was thinking of something like this:
<pointcut name="scope"
expression="( cflow(call(* ext.demo.Report.\*(..))) && execution(* ext.demo.QueryUtil.*(..)))"/>
Could anyone help me with that?