Package javax.enterprise.inject.literal
Class NamedLiteral
- java.lang.Object
-
- javax.enterprise.util.AnnotationLiteral<javax.inject.Named>
-
- javax.enterprise.inject.literal.NamedLiteral
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
public final class NamedLiteral extends AnnotationLiteral<javax.inject.Named> implements javax.inject.Named
Supports inline instantiation of theNamed
qualifier.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static javax.inject.Named
INSTANCE
private static long
serialVersionUID
private java.lang.String
value
-
Constructor Summary
Constructors Modifier Constructor Description private
NamedLiteral(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedLiteral
of(java.lang.String value)
java.lang.String
value()
-
Methods inherited from class javax.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final javax.inject.Named INSTANCE
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
value
private final java.lang.String value
-
-
Method Detail
-
of
public static NamedLiteral of(java.lang.String value)
-
value
public java.lang.String value()
-
-