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

Consider annotating built in scopes with @Scope

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • None
    • 1.0
    • None
    • None

    Description

      The @Inject spec defines the @Singleton annotation that can be used in @Inject impls or CDI . The annotations defined in CDI can only be used in CDI and could not be reused with @Inject impl.

      If technically (or per the spec) it is possible to annotate the CDI annotations with @Scope (in addition of @NormalScope) then those annotations could be reused in @Inject implemetentation, removing the need for proprietary annotations that do the same (com.google.inject.servlet.RequestScoped for example).

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            jviet@redhat.com Julien Viet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: