1 2 3 4 5 6 7 8 9 10 11 12
// "@Before with && in string" import org.aspectj.lang.annotation.*; class Foo{ } aspect A{ @Before("call(* org.aspectprogrammer..*(..)) && this(Foo)") public void callFromFoo() { System.out.println("Call from Foo"); } }