<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"><<a href="mailto:issues@jboss.org" target="_blank">issues@jboss.org</a>></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&focusedCommentId=13066821#comment-13066821" target="_blank">https://issues.jboss.org/browse/CDI-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&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>
> Include filters<br>
> ---------------<br>
<div class="HOEnZb"><div class="h5">><br>
> Key: CDI-526<br>
> URL: <a href="https://issues.jboss.org/browse/CDI-526" target="_blank">https://issues.jboss.org/browse/CDI-526</a><br>
> Project: CDI Specification Issues<br>
> Issue Type: Feature Request<br>
> Components: Packaging and Deployment<br>
> Affects Versions: 1.2.Final<br>
> Reporter: Jozef Hartinger<br>
><br>
> CDI has support for exclude filters in the beans.xml where a certain part of a bean archive (no matter whether "annotated" or "all" type) can be excluded from CDI processing on a package level, e.g:<br>
> {code:XML}<br>
> <exclude name="com.acme.rest.*" /><br>
> {code}<br>
> 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 "all" 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>
> {code:XML}<br>
> <include name="my.application.*" /><br>
> {code}<br>
> 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>