Package jakarta.enterprise.context
Class Initialized.Literal
- java.lang.Object
-
- jakarta.enterprise.util.AnnotationLiteral<Initialized>
-
- jakarta.enterprise.context.Initialized.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- Initialized
public static final class Initialized.Literal extends AnnotationLiteral<Initialized> implements Initialized
Supports inline instantiation of theInitialized
qualifier.- Author:
- Martin Kouba
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.enterprise.context.Initialized
Initialized.Literal
-
-
Field Summary
Fields Modifier and Type Field Description static Initialized.Literal
APPLICATION
Default Initialized literal for the ApplicationScoped scopestatic Initialized.Literal
CONVERSATION
Default Initialized literal for the ConversationScoped scopestatic Initialized.Literal
REQUEST
Default Initialized literal for the RequestScoped scopestatic Initialized.Literal
SESSION
Default Initialized literal for the SessionScoped scope
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Initialized.Literal
of(java.lang.Class<? extends java.lang.annotation.Annotation> value)
Obtain the literal of the provided scope annotationjava.lang.Class<? extends java.lang.annotation.Annotation>
value()
-
Methods inherited from class jakarta.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
-
-
-
Field Detail
-
REQUEST
public static final Initialized.Literal REQUEST
Default Initialized literal for the RequestScoped scope
-
CONVERSATION
public static final Initialized.Literal CONVERSATION
Default Initialized literal for the ConversationScoped scope
-
SESSION
public static final Initialized.Literal SESSION
Default Initialized literal for the SessionScoped scope
-
APPLICATION
public static final Initialized.Literal APPLICATION
Default Initialized literal for the ApplicationScoped scope
-
-
Method Detail
-
of
public static Initialized.Literal of(java.lang.Class<? extends java.lang.annotation.Annotation> value)
Obtain the literal of the provided scope annotation- Parameters:
value
- the scope annotation- Returns:
- a new Literal value for the provided scope annotation
-
value
public java.lang.Class<? extends java.lang.annotation.Annotation> value()
-
-