[cdi-dev] [JBoss JIRA] (CDI-47) Add required attribute to <interceptor> tag in beans.xml

Antoine Sabot-Durand (JIRA) issues at jboss.org
Mon Sep 15 12:29:04 EDT 2014


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

Antoine Sabot-Durand resolved CDI-47.
-------------------------------------
    Fix Version/s: 1.1.Final
                       (was: TBD)
       Resolution: Done


This feature was resolve with CDI 1.1 and the introduction of {{@Priority}} for interceptor.

> Add required attribute to <interceptor> tag in beans.xml 
> ---------------------------------------------------------
>
>                 Key: CDI-47
>                 URL: https://issues.jboss.org/browse/CDI-47
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Interceptors, Packaging and Deployment
>    Affects Versions: 1.0
>            Reporter: Stuart Douglas
>             Fix For: 1.1.Final
>
>
> Currently the deployment will fail if an interceptor is not present, which means that it is not conventient to use interceptors from optional modules, as the end user will need to open up the jar file and edit the beans.xml file manually. 
> Adding a required="true|false" attribute to the <interceptor> element in beans.xml would allow an archive to specify that the interceptor is not essential, and if it is not found it should simply be ignored.
> For example, currently Seam Security has a hard dependency on Seam Persistence because it uses the Transaction interceptor, and the deployment will fail if Seam Persistence is not present.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the cdi-dev mailing list