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

Allow nonbinding producer methods to have scopes

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 1.2.Final
    • Beans, Contexts
    • None

      Currently, you cannot have a nonbinding producer method, e.g. one where the annotation is read at runtime, with a scope. This means that repeated injections always happen. It would be better if you could scope the nonbinding producer methods, so that the results were bound, e.g. to a request scope, so that look ups can be done once.

      The current way to avoid this is to use a holder object with the proper scope.

            Unassigned Unassigned
            meetoblivion_jira John Ament (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: