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:
-
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).
-
If a bean class has superclasses, any AroundInvoke methods defined on those
superclasses are invoked, most general superclass first.
-
The AroundInvoke method, if any, on the bean class itself is invoked.