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

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


org.jboss.seam.annotations
Annotation Type In


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface In

Specifies that a seam component should be injected to the annotated field or setter method of a seam component.

Author:
Gavin King

Optional Element Summary
 boolean create
          Specifies that a component should be instantiated if the context variable is null.
 boolean required
          Specifies that the injected value must not be null, by default.
 ScopeType scope
          Explicitly specify the scope to search, instead of searching all scopes.
 String value
          The context variable name.
 

value

public abstract String value
The context variable name. Defaults to the name of the annotated field or getter method.

Default:
""

create

public abstract boolean create
Specifies that a component should be instantiated if the context variable is null.

Default:
false

required

public abstract boolean required
Specifies that the injected value must not be null, by default.

Default:
true

scope

public abstract ScopeType scope
Explicitly specify the scope to search, instead of searching all scopes.

Default:
UNSPECIFIED