blob: faddbec7cef73c04236ede8306c8bf9e5cd63784 (
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
26
27
28
29
30
|
import org.aspectj.lang.annotation.*;
@Aspect
public class Logger {
@Before("execution(* O*.*())")
public void boo() {
}
@After("execution(* O*.*())")
public void aoo() {
}
@Around("execution(* O*.*())")
public void aroo() {
}
@Pointcut("execution(* *(..))")
public void ooo() {}
@DeclareWarning("execution(* xxx(..))")
public static final String message ="hello";
@DeclareError("execution(* xxx(..))")
public static final String message2 ="gello";
}
|