org.aspectj/tests/bugs153/pr148693/MyAspect.java
2006-07-04 16:53:37 +00:00

20 lines
392 B
Java

package mypackage;
public aspect MyAspect {
pointcut executeMethod(): within(TestClass) && execution(* *(..));
before(): executeMethod() {
System.out.println("Enter "+thisJoinPointStaticPart);
}
after(): executeMethod() {
System.out.println("Leave "+thisJoinPointStaticPart);
}
}
class TestClass {
public static void main(String[] args) { }
}