Este contenido no está disponible en el idioma seleccionado.
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.