package test.stateful.logging; public class Jumping { hook JumpingLogging { private String logText = "Jumping Executing: "; int i = 0; JumpingLogging(method1(..args),method2(..args),method3(..args),method4(..args),method5(..args),method6(..args), method7(..args), method8(..args), method9(..args),method10(..args)) { start>p1; p1:execution(method1)>p2; p2:execution(method2)>p3; p3:execution(method3)>p4; p4:execution(method4)>p5; p5:execution(method5)>p6; p6:execution(method6)>p7; p7:execution(method7)>p8; p8:execution(method8)>p9; p9:execution(method9)>p10; p10:execution(method10)>p1; } public void setLogText(String text) { logText= text; } before() { ++i;System.out.println(logText+thisJoinPoint.getName()+" IN "+thisJoinPoint.getClassName()); } } }