org.aspectj/tests/bugs153/pr148693/MyAspect.java

20 lines
392 B
Java
Raw Normal View History

2006-07-04 18:53:37 +02:00
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) { }
}