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 阅读(102) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: