aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/PR113257/base/src/pkg1.monitoring/ErrorMonitoring.aj
blob: 155b0e43ac8ace9a77b180f120fe457aa045c242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package pkg1.monitoring;

public aspect ErrorMonitoring {
	
    pointcut adviceEnabled() : isAdviceEnabled() && scope();	
	pointcut isAdviceEnabled() : if(true);
	
	pointcut scope() : within(DoMonitorErrors+) || !within(pkg1.monitoring..*);

    before(Throwable t) : args(t) && scope() && adviceEnabled() {}
	
////	before(Throwable t) :
////		args(t) && 
////		((scope() && isAdviceEnabled() &&  within(DoMonitorErrors+))
////			||  scope() && isAdviceEnabled() &&  !within(pkg1.monitoring..*)) {
////	}
//	before(Throwable t) :
//		args(t) && 
//		(scope() && ( (isAdviceEnabled() && within(DoMonitorErrors+))
//			|| (isAdviceEnabled() &&  !within(pkg1.monitoring..*)))) {
//	}
}