[JBoss JIRA] (CDI-198) Make beans.xml validation consistent with the ProcessModule event
by Jozef Hartinger (Created) (JIRA)
Make beans.xml validation consistent with the ProcessModule event
-----------------------------------------------------------------
Key: CDI-198
URL: https://issues.jboss.org/browse/CDI-198
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Portable Extensions
Affects Versions: 1.1.EDR1
Reporter: Jozef Hartinger
Fix For: 1.1 (Proposed)
The validation of enabled interceptors, alternatives and decorators is currently tightly related to the beans.xml file, e.g.:
{quote}If the same class is listed twice under the <interceptors> element, the container automatically detects the problem and treats it as a deployment problem.{quote}
With CDI-97 in place, which allows extensions to change the enabled alternatives, decorators and interceptors, this is no longer sufficient. IMO, the validation of enabled interceptors and decorators should be the following:
1.) For each deployment descriptor, the container verifies that it does not contain duplicate interceptors, decorators or alternatives.
2.) For each BDA, the container fires the ProcessModule event allowing extensions to modify enabled alternatives, interceptors and decorators.
3.) For each BDA, the container verifies that the resulting collection of enabled alternatives, decorators and interceptors does not contain duplicates.
The step 1.) is not actually necessary but may be convenient.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira