Top Description Inners Methods
javax.enterprise.context

public @Interface SessionScoped

extends Annotation
Known Direct Implementers
javax.enterprise.context.SessionScoped.Literal
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
@Documented
@NormalScope
passivating:true
@Inherited
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.TYPE, .RetentionPolicy.RUNTIME

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

Authors
Gavin King, Pete Muir, Antoine Sabot-Durand

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SessionScoped.Literal

Supports inline instantiation of the SessionScoped annotation.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
javax.enterprise.context back to summary

public final Class SessionScoped.Literal

extends AnnotationLiteral<SessionScoped>
implements SessionScoped
Class Inheritance
All Implemented Interfaces
javax.enterprise.context.SessionScoped, java.lang.annotation.Annotation

Supports inline instantiation of the SessionScoped annotation.
Author
Martin Kouba
Since
2.0

Field Summary

Modifier and TypeField and Description
public static final SessionScoped.Literal
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from javax.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final SessionScoped.Literal INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()