posts - 431,  comments - 344,  trackbacks - 0
          adviceexecution()切入點(diǎn)用于捕獲在應(yīng)用程序內(nèi)執(zhí)行任何通知的連接點(diǎn)。語法:
          pointcut <pointcut name>() : adviceexecution();

          public aspect AdviceExecutionRecipe {
           pointcut adviceExecutionPointcut() : adviceexecution();
           before() : adviceExecutionPointcut() && !within(AdviceExecutionRecipe +) {
            System.out.println("-------------- Aspect Advice Logic ---------------");
            System.out.println("In the advice picked by ExecutionRecipe");
            System.out.println("Signature: " + thisJoinPoint.getStaticPart().getSignature());
            System.out.println("Source Line: " + thisJoinPoint.getStaticPart().getSourceLocation());
            System.out.println("--------------------------------------------------");
           }
          }
          posted on 2007-07-03 17:18 周銳 閱讀(315) 評論(0)  編輯  收藏 所屬分類: AspectJ
          主站蜘蛛池模板: 通山县| 日照市| 乌兰浩特市| 文成县| 家居| 长治市| 柳江县| 佛学| 庆元县| 合山市| 独山县| 长治市| 依安县| 德惠市| 全椒县| 同江市| 盐城市| 虎林市| 安国市| 吴江市| 牙克石市| 锡林郭勒盟| 五原县| 丽江市| 梁山县| 江源县| 凤庆县| 新河县| 德江县| 青田县| 腾冲县| 化德县| 南川市| 曲周县| 青州市| 定安县| 元朗区| 无为县| 兴国县| 马山县| 江口县|