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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 平顶山市| 古交市| 娄底市| 弥渡县| 阆中市| 白城市| 当阳市| 昌宁县| 巧家县| 平武县| 汉中市| 车险| 阜新市| 岳西县| 浙江省| 宜兴市| 磴口县| 娄烦县| 井研县| 廉江市| 友谊县| 高台县| 浦县| 长兴县| 读书| 十堰市| 宁强县| 徐州市| 麟游县| 巴彦淖尔市| 从化市| 麦盖提县| 鹿邑县| 行唐县| 黑龙江省| 兴义市| 中西区| 昭苏县| 图木舒克市| 新余市| 普宁市|