Package jakarta.enterprise.context
Class Destroyed.Literal
- java.lang.Object
-
- jakarta.enterprise.util.AnnotationLiteral<Destroyed>
-
- jakarta.enterprise.context.Destroyed.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- Destroyed
public static final class Destroyed.Literal extends AnnotationLiteral<Destroyed> implements Destroyed
Supports inline instantiation of theDestroyed
qualifier.- Author:
- Martin Kouba
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.enterprise.context.Destroyed
Destroyed.Literal
-
-
Field Summary
Fields Modifier and Type Field Description static Destroyed.Literal
APPLICATION
Default Destroyed literal for the ApplicationScoped scopestatic Destroyed.Literal
CONVERSATION
Default Destroyed literal for the ConversationScoped scopestatic Destroyed.Literal
REQUEST
Default Destroyed literal for the RequestScoped scopestatic Destroyed.Literal
SESSION
Default Destroyed literal for the SessionScoped scope
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Destroyed.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 Destroyed.Literal REQUEST
Default Destroyed literal for the RequestScoped scope
-
CONVERSATION
public static final Destroyed.Literal CONVERSATION
Default Destroyed literal for the ConversationScoped scope
-
SESSION
public static final Destroyed.Literal SESSION
Default Destroyed literal for the SessionScoped scope
-
APPLICATION
public static final Destroyed.Literal APPLICATION
Default Destroyed literal for the ApplicationScoped scope
-
-
Method Detail
-
of
public static Destroyed.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()
-
-