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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.0 .Final
    • 2.0-EDR1
    • Beans
    • None
    • Sprint 1

      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.

              asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
              struberg Mark Struberg (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: