summaryrefslogtreecommitdiffstats
path: root/tests/new/options11/library2/Library2.java
blob: 989dafb3c20f760bd38e19d4e054aa7a6b0354e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package library2;

import org.aspectj.lang.JoinPoint;
import org.aspectj.testing.Tester;

public abstract aspect Library2 {
    abstract pointcut targetJoinPoints();
    
    before() : targetJoinPoints() {
        Tester.event("before 2 " + renderId(thisJoinPoint));
    }

    before() : targetJoinPoints() {
        Tester.event("after 2 " + renderId(thisJoinPoint));
    }
    protected String renderId(JoinPoint jp) {
        return jp.getSignature().getName();
    }
}