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

Add required attribute to <interceptor> tag in beans.xml

    XMLWordPrintable

Details

    Description

      Currently the deployment will fail if an interceptor is not present, which means that it is not conventient to use interceptors from optional modules, as the end user will need to open up the jar file and edit the beans.xml file manually.

      Adding a required="true|false" attribute to the <interceptor> element in beans.xml would allow an archive to specify that the interceptor is not essential, and if it is not found it should simply be ignored.

      For example, currently Seam Security has a hard dependency on Seam Persistence because it uses the Transaction interceptor, and the deployment will fail if Seam Persistence is not present.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: