/** * The Trace aspect injects tracing messages before and after every method */ package logSequencer; public aspect Trace { pointcut log(): execution(* *.*(..)); before() : log() { System.out.println(thisJoinPoint.getSignature() + " BEGIN"); } after() : log() { System.out.println(thisJoinPoint.getSignature() + " END"); } }