blob: e035967bb782cb15f93d8f72007ce22259830242 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package ma2.aspect1;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
public aspect Aspect1 {
Object around(): execution(@ma2.Annotation1 * *(..)) {
new InternalClass();
System.out.println(">In Aspect1");
proceed();
System.out.println("=In Aspect1");
Object o = proceed();
System.out.println("<In Aspect1");
return o;
}
private static class InternalClass {
}
}
|