I want to create a pointcut to call a method call from specific methods.
take the following:
class Parent { public foo() {
I would like the call point in foo () in the methods bar1 () and bar3 ()
I thought something like
pointcut fooOperation(): call(public void Parent.foo() && (execution(* Child.bar1()) || execution(* Child.bar3()) ); before() : fooOperation() {
however, it does not seem to work. any ideas?
thanks
source share