Package jakarta.enterprise.context
Class Destroyed.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
- Destroyed
public static final class Destroyed.Literal
extends AnnotationLiteral<Destroyed>
implements Destroyed
Supports inline instantiation of the
Destroyed qualifier.- Author:
- Martin Kouba
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.enterprise.context.Destroyed
Destroyed.Literal -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Destroyed.LiteralDefault Destroyed literal for the ApplicationScoped scopestatic final Destroyed.LiteralDefault Destroyed literal for the ConversationScoped scopestatic final Destroyed.LiteralDefault Destroyed literal for the RequestScoped scopestatic final Destroyed.LiteralDefault Destroyed literal for the SessionScoped scope -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>booleaninthashCode()static Destroyed.Literalof(Class<? extends Annotation> value) Obtain the literal of the provided scope annotationtoString()Class<? extends Annotation>value()
-
Field Details
-
REQUEST
Default Destroyed literal for the RequestScoped scope -
CONVERSATION
Default Destroyed literal for the ConversationScoped scope -
SESSION
Default Destroyed literal for the SessionScoped scope -
APPLICATION
Default Destroyed literal for the ApplicationScoped scope
-
-
Method Details
-
of
Obtain the literal of the provided scope annotation- Parameters:
value- the scope annotation- Returns:
- a new Literal value for the provided scope annotation
-
value
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation- Overrides:
annotationTypein classAnnotationLiteral<Destroyed>
-
equals
- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classAnnotationLiteral<Destroyed>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classAnnotationLiteral<Destroyed>
-
toString
- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classAnnotationLiteral<Destroyed>
-