blob: f252d8838c5a36d926e943973a209d4e542346b0 (
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
31
|
import org.aspectj.lang.annotation.*;
@Aspect
public abstract class AbstractMethods {
@Pointcut
protected abstract void tracingScope();
@Before("tracingScope()")
public void doit() {
test();
System.out.println("advice running");
}
protected abstract void test();
}
/*
public abstract aspect AbstractMethods {
protected abstract pointcut tracingScope ();
before () : tracingScope () {
test();
System.out.println("advice running");
}
protected abstract void test ();
// protected void test () {}
}
*/
|