此内容没有您所选择的语言版本。
5.2.8. Defining the component scope
The
@Scope
annotation lets us override the scope (context) of a component to define the context a component instance is bound to when instantiated by Seam.
@Name("user") @Entity @Scope(SESSION) public class User { ... }
@Name("user")
@Entity
@Scope(SESSION)
public class User { ... }
org.jboss.seam.ScopeType
defines an enumeration of possible scopes.