@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) @Documented @NormalScope(passivating=true) @Inherited public @interface SessionScoped
Specifies that a bean is session scoped.
While SessionScoped must be associated with the built-in session context required by the specification, third-party extensions are allowed to also associate it with their own context. Behavior described below is only related to the built-in session context.
The session scope is active:
The session context is shared between all servlet requests that occur in the same HTTP session.
The session context is destroyed:
An event with qualifier @Initialized(SessionScoped.class) is fired when the session context is initialized and an event with qualifier @Destroyed(SessionScoped.class) when the session context is destroyed. The event payload is the HttpSession
Copyright © 2019 JBoss by Red Hat. All rights reserved.