linshi8126

          Pick up from SCBCD 5.0 Study Guide

          2.1

          Identify correct and incorrect statements or examples about interceptors, including implementing an interceptor class, the lifecycle of interceptor instances, @AroundInvoke methods, invocation order, exception handling, lifecycle callback methods, default and method level interceptors, and specifying interceptors in the deployment descriptor.


          An interceptor class must have a public no-arg constructor.

          Multiple Business Method Interceptor Methods (invocation order)

          After the interceptor methods defined on interceptor classes have been invoked, then, in order:


          1. If any method-level interceptors are defined for the business method that is to be invoked, the AroundInvoke methods defined on those interceptor classes are invoked in the same order as the specification of those interceptor classes in the Interceptors annotation applied to that business method. ZZZZ (See Section 12.7 for the description of method-level interceptors).

          2. If a bean class has superclasses, any AroundInvoke methods defined on those superclasses are invoked, most general superclass first.

          3. The AroundInvoke method, if any, on the bean class itself is invoked.

          posted on 2009-07-29 10:44 SteveLam 閱讀(103) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 芒康县| 荃湾区| 安阳市| 上思县| 三台县| 肥城市| 临安市| 乐都县| 定襄县| 西昌市| 陇川县| 清涧县| 志丹县| 迭部县| 墨江| 天祝| 麻江县| 京山县| 北安市| 和林格尔县| 济南市| 肇东市| 和政县| 茂名市| 宁津县| 玛沁县| 恩施市| 秦皇岛市| 吐鲁番市| 西吉县| 沂南县| 彭水| 永丰县| 浙江省| 隆安县| 汉中市| 北辰区| 长治市| 高唐县| 金溪县| 会昌县|