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

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: