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

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Aug 17 07:34:14 EDT 2012


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

Pete Muir updated CDI-198:
--------------------------

    Issue Type: Bug  (was: Feature Request)
      Priority: Minor  (was: Major)

    
> 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.EDR1
>            Reporter: Jozef Hartinger
>            Priority: Minor
>             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

        


More information about the cdi-dev mailing list