1 2 3 4 5 6 7 8 9 10 11 12
import java.util.List; public privileged aspect LTWAspect { pointcut method (List list) : execution(* LTWHelloWorld.*(..)) && this(list); before (List list) : method (list) { System.err.println("LTWAspect.method(" + thisJoinPointStaticPart + ")"); list.add("LTWAspect"); } }