站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.2.0 patch1 API 英文版文档

Interceptor (JBoss Seam API Documentation) - JBoss Seam 1.2.0 patch1 API 英文版文档


org.jboss.seam.annotations
Annotation Type Interceptor


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface Interceptor

Annotates an interceptor class and specifies what kind of interceptor it is (client side or server side), and its ordering with respect to other interceptors in the stack.

Author:
Gavin King

Optional Element Summary
 Class[] around
          Specifies that an interceptor is called "around" another interceptor or interceptors.
 boolean stateless
          Performance optimization for stateless interceptors.
 InterceptorType type
          Specifies that the interceptor is a SERVER or CLIENT side interceptor.
 Class[] within
          Specifies that an interceptor is called "within" another interceptor or interceptors.
 

type

public abstract InterceptorType type
Specifies that the interceptor is a SERVER or CLIENT side interceptor.

Returns:
SERVER by default
Default:
SERVER

around

public abstract Class[] around
Specifies that an interceptor is called "around" another interceptor or interceptors.

Default:
{}

within

public abstract Class[] within
Specifies that an interceptor is called "within" another interceptor or interceptors.

Default:
{}

stateless

public abstract boolean stateless
Performance optimization for stateless interceptors.

Default:
false