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

Allow interceptors and decorators to be applied to the return value of a producer method

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0-EDR1
    • Fix Version/s: 2.0 .Final
    • Component/s: Beans
    • Labels:
      None
    • Sprint:
      Sprint 1

      Description

      Currently the spec explicitly disallows to apply interceptors and decorators to contextual instances created by producer fields and producer methods.

      if you add an Interceptor annotation to a producer method then only the invocation of the producermethod gets intercepted. The created Contextual Instance will remain a plain object.

      We should explore ways to allow this somehow.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  antoinesabot-durand Antoine Sabot-Durand
                  Reporter:
                  struberg Mark Struberg
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: