Top Description Inners Methods
jakarta.faces.annotation

public @Interface SessionMap

extends Annotation
Known Direct Implementers
jakarta.faces.annotation.SessionMap.Literal
Annotations
@Target:TYPE, METHOD, PARAMETER, FIELD
@Qualifier
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE, .RetentionPolicy.RUNTIME

The presence of this annotation (along with @Inject) on a field of type Map<String, Object> causes the map returned from jakarta.faces.context.ExternalContext#getSessionMap to be injected as the value of that field.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SessionMap.Literal

Supports inline instantiation of the SessionMap qualifier.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
jakarta.faces.annotation back to summary

public final Class SessionMap.Literal

extends AnnotationLiteral<SessionMap>
implements SessionMap
Class Inheritance
All Implemented Interfaces
jakarta.faces.annotation.SessionMap, java.lang.annotation.Annotation

Supports inline instantiation of the SessionMap qualifier.

Since
4.0

Field Summary

Modifier and TypeField and Description
public static final SessionMap.Literal
INSTANCE

Instance of the SessionMap qualifier.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final SessionMap.Literal INSTANCE

Instance of the SessionMap qualifier.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()