[cdi-dev] [JBoss JIRA] (CDI-198) Make beans.xml validation consistent with the ProcessModule event

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Feb 26 15:02:57 EST 2013


     [ https://issues.jboss.org/browse/CDI-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir reopened CDI-198:
---------------------------


    
> 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: Bug
>          Components: Portable Extensions
>    Affects Versions: 1.1.EDR
>            Reporter: Jozef Hartinger
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 1.1.PFD
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list