Annotation Interface Service.Named

Enclosing class:
Service

A qualifier that can restrict injection to specifically named instances, or that qualifies services with that name.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default name to identify a default instance.
    static final TypeName
    Type name of this annotation.
    static final String
    Represents a wildcard name (i.e., matches anything).
  • Field Details

    • TYPE

      static final TypeName TYPE
      Type name of this annotation.
    • WILDCARD_NAME

      static final String WILDCARD_NAME
      Represents a wildcard name (i.e., matches anything).
      See Also:
    • DEFAULT_NAME

      static final String DEFAULT_NAME
      Default name to identify a default instance.
      See Also:
  • Element Details

    • value

      String value
      The name.
      Returns:
      name this injection point requires, or this service provides, or a factory provides