1 2 3 4 5 6 7 8 9 10 11
aspect A { public static final boolean enabled = true; before(): execution(* AlwaysWeave.*(..)) && if(enabled) {} } public class AlwaysWeave { public void foo() {} }