Amazon Ads

2013年8月23日 星期五

[筆記]Business Method Interceptor的一些特性

下表列出Business Method Interceptor的一些特性:
May be defined on which EJB type(s)Session bean and message driven beans.
Intercept which method types.Session bean business methods and message driven bean's message listener methods.
Location of interceptor methods.In special interceptor class, interceptor superclass, or in the target class.
Restrinctions on interceptor methods.At most one per class.
Annotation(s) use to define interceptor method(s)@AroundLinvoke

Interceptor method security context.Same security context as intercepted business method.
Interceptor method transaction context.Same transaction context as intercepted business method.
Exceptions interceptor methods may throw.Exceptions declared in the throws-clause of the intercepted business method and system exceptions.
Interceptor method signature.Object someMethodName(InvocationContext) throws Exception

Interceptor method visibilityPublic, protected, private or package visibility