blob: 43211d6ec34253c5b14b38feaf0d5bafde2283ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import java.io.InvalidClassException;
import org.aspectj.testing.Tester;
public aspect AroundClosureExecutionAdvice {
pointcut run () :
execution(public void run());
void around () : run () {
Runnable runnable = new Runnable() {
public void run () {
System.out.println("> AroundClosureExecutionAdvice.run()");
proceed();
System.out.println("< AroundClosureExecutionAdvice.run()");
}
};
runnable.run();
}
}
|