Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4830

Contexts and Dependency Injection (CDI): enabling interceptors/decorators/alternatives

    Details

      Description

      Document: https://access.stage.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform//7.0/development-guide/chapter-8-contexts-and-dependency-injection-cdi

      Issue: Document contains sections about Alternatives, Decorators and Interceptors and when talking about enabling them, it always mentions only beans.xml. However one can use @Priority as well.

      Solution:
      Add a notion of @Priority into the document. Once can use it to enable the above mentioned components globally (beans.xml only do it per archive) not to mention you do not need to have it in beans.xml.

      Note: It might be worth saying that one should use @Priority xor beans.xml. CDI spec is not clear on what happens if you use both (though Weld can handle that).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhn-support-pnag Priyanka Nag
                Reporter:
                manovotn Matěj Novotný
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: