<div dir="ltr">+1. I was going to raise a jira myself for this. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 11:49 AM, Romain Manni-Bucau (JIRA) <span dir="ltr">&lt;<a href="mailto:issues@jboss.org" target="_blank">issues@jboss.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
    [ <a href="https://issues.jboss.org/browse/CDI-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13066821#comment-13066821" target="_blank">https://issues.jboss.org/browse/CDI-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13066821#comment-13066821</a> ]<br>
<br>
Romain Manni-Bucau commented on CDI-526:<br>
----------------------------------------<br>
<br>
+1, would be far easier than excluding all the container and breaking the app each time you add a not CDi friendly dependency.<br>
<br>
&gt; Include filters<br>
&gt; ---------------<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;                 Key: CDI-526<br>
&gt;                 URL: <a href="https://issues.jboss.org/browse/CDI-526" target="_blank">https://issues.jboss.org/browse/CDI-526</a><br>
&gt;             Project: CDI Specification Issues<br>
&gt;          Issue Type: Feature Request<br>
&gt;          Components: Packaging and Deployment<br>
&gt;    Affects Versions: 1.2.Final<br>
&gt;            Reporter: Jozef Hartinger<br>
&gt;<br>
&gt; CDI has support for exclude filters in the beans.xml where a certain part of a bean archive (no matter whether &quot;annotated&quot; or &quot;all&quot; type) can be excluded from CDI processing on a package level, e.g:<br>
&gt; {code:XML}<br>
&gt; &lt;exclude name=&quot;com.acme.rest.*&quot; /&gt;<br>
&gt; {code}<br>
&gt; With the rise of fat jars and CDI support for SE it would also be useful to be able to define an include filter. Suppose we have a single large jar file with all its dependencies shaded in. This jar file has the beans.xml file which means that all the packages in that file are processed (all classes are at least scanned for bean defining annotations or even turned into CDI beans in &quot;all&quot; mode). We can obviously add a couple of exclude filters for each of the libraries we do not want to scan. It would however be much nicer if we could define a single include filter e.g.:<br>
&gt; {code:XML}<br>
&gt; &lt;include name=&quot;my.application.*&quot; /&gt;<br>
&gt; {code}<br>
&gt; Other packages (that belong to shaded-in libraries) in the same jar would not be scanned at all.<br>
<br>
<br>
<br>
--<br>
This message was sent by Atlassian JIRA<br>
(v6.3.15#6346)<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div>