posts - 431,  comments - 344,  trackbacks - 0
          adviceexecution()切入點用于捕獲在應用程序內執行任何通知的連接點。語法:
          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 周銳 閱讀(317) 評論(0)  編輯  收藏 所屬分類: AspectJ
          主站蜘蛛池模板: 宜良县| 奈曼旗| 棋牌| 泸定县| 蒙山县| 镇沅| 谢通门县| 黄陵县| 临海市| 常德市| 天津市| 广州市| 泉州市| 嘉黎县| 得荣县| 长泰县| 固始县| 三明市| 开江县| 嘉祥县| 曲水县| 莎车县| 依兰县| 平阴县| 富源县| 河源市| 青海省| 都江堰市| 通道| 盖州市| 右玉县| 阳高县| 吉水县| 平山县| 南安市| 融水| 宁强县| 嘉祥县| 黄大仙区| 巴塘县| 高雄县|