blob: 6a3237bdfe76ce9f29f3b1189d945d805f46c8bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package business;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
public class AA {
public void foo(long docId, String userid) {
}
public static void main(String[] args) {
new AA().foo(12, "hello");
}
}
@Aspect
class Asp {
@Around("execution(* foo(..))")
public Object around(ProceedingJoinPoint pjp) {
return pjp.proceed();
}
}
|