1 2 3 4 5 6 7 8 9 10 11 12
package com; import org.aspectj.lang.annotation.*; @DeclarePrecedence("com.ThisAspect, com.OtherAspect") @Aspect public class ThisAspect { @Before("execution(* *(..))") public void b() {} //... public static void main(String[] argv) {} }