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 Details

    • INSTANCE

      public static final jakarta.inject.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()