Class NamedLiteral
java.lang.Object
jakarta.enterprise.util.AnnotationLiteral<jakarta.inject.Named>
jakarta.enterprise.inject.literal.NamedLiteral
- All Implemented Interfaces:
Annotation
public final class NamedLiteral
extends AnnotationLiteral<jakarta.inject.Named>
implements jakarta.inject.Named
Supports inline instantiation of the
Named
qualifier.- Since:
- 2.0
- Author:
- Pete Muir, Jozef Hartinger
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final jakarta.inject.Named
Default Named literal -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedLiteral
Create a new NamedLiteral for the given name valuevalue()
Methods inherited from class jakarta.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
Field Details
-
INSTANCE
public static final jakarta.inject.Named INSTANCEDefault Named literal
-
-
Method Details
-
of
Create a new NamedLiteral for the given name value- Parameters:
value
- the name- Returns:
- new NamedLiteral
-
value
-