blob: 98ac9d2a313189ef82f963f192d08122b258664c (
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
|
package test;
public aspect Logger {
//declare precedence: Logger, ErrorContainment;
//
// before() : adviceexecution() && !within(Logger){
//
// System.out.println("--->Logger:" + thisJoinPoint);
//
// }
//
// after() : adviceexecution() && !within(Logger) {
//
// System.out.println("--->Logger:" + thisJoinPoint);
//
// }
before(): execution(* hk..*.do*(..)){
System.out.println("This is a test");
}
}
|