mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-27 17:54:40 +02:00
23 lines
495 B
Java
23 lines
495 B
Java
![]() |
public class LazyTjpTest5 {
|
||
|
|
||
|
public void test1 () { }
|
||
|
|
||
|
private static aspect Aspect1 {
|
||
|
|
||
|
private static boolean enabled = true;
|
||
|
|
||
|
after () : if(enabled) && execution(public void LazyTjpTest5.test1()) {
|
||
|
System.out.println(thisJoinPoint);
|
||
|
}
|
||
|
|
||
|
before() : execution(public void LazyTjpTest5.test1()) {
|
||
|
System.out.println(thisJoinPoint);
|
||
|
}
|
||
|
|
||
|
void around() : execution(public void LazyTjpTest5.test1()) {
|
||
|
System.out.println(thisJoinPoint);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|