package test; class PerTestAspect { hook PerHook { private static int theId = 0; private String how = ""; private int id = theId++; PerHook(method(..args)) { execution(method); } public void setHow(String s) { this.how=s; } before() { System.out.println(how+" : "+id); test.PerTest.log(how,id); } } }