Class NamedLiteral

java.lang.Object
jakarta.enterprise.util.AnnotationLiteral<Named>
jakarta.enterprise.inject.literal.NamedLiteral
All Implemented Interfaces:
Annotation

public final class NamedLiteral extends AnnotationLiteral<Named> implements Named
Supports inline instantiation of the Named qualifier.
Since:
2.0
Author:
Pete Muir, Jozef Hartinger
See Also:
  • Field Details

    • INSTANCE

      public static final Named INSTANCE
      Default Named literal
  • Method Details

    • of

      public static NamedLiteral of(String value)
      Create a new NamedLiteral for the given name value
      Parameters:
      value - the name
      Returns:
      new NamedLiteral
    • value

      public String value()