Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-419

Clarify whether custom beans need to declare the qualifier "Any"

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Beans
    • None

      It's not obvious whether custom beans contributed through a portable extension need to return the Any qualifier from there getQualifier() methods or not (the CDI implementation would be required to add it if missing then).

      Concerned spec sections are:

      Section 2.3.1:

      Every bean has the built-in qualifier @Any, even if it does not explicitly declare this qualifier ...

      And section 11.1 which says:

      getTypes(), getQualifiers(), getScope(), getName() and getStereotypes()
      must return the bean types, qualifiers, scope type, bean name and
      stereotypes of the bean, as defined in Chapter 2

              Unassigned Unassigned
              gunnar.morling Gunnar Morling
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: