Details
-
Bug
-
Resolution: Done
-
Trivial
-
7.0.0.GA
-
None
Description
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).