<div dir="ltr">There&#39;s a solution at implementation level. Since extension developed for 1.2 contains unknown classes in 1.0, the impl could catch the &quot;class not found&quot; exception on an extension send a warning to user and don&#39;t use the extension. In other way instead of letting the app crash, manage the crash by ignoring the extension.<div><br></div><div>Antoine</div></div><br><div class="gmail_quote"><div dir="ltr">Le ven. 2 oct. 2015 à 11:20, Antonin Stefanutti &lt;<a href="mailto:antonin@stefanutti.fr">antonin@stefanutti.fr</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
<br>
<div>
<blockquote type="cite">
<div>On 02 Oct 2015, at 10:54, Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net" target="_blank">antoine@sabot-durand.net</a>&gt; wrote:</div>
<div>
<div dir="ltr">
<div><br>
</div>
<div>Now this doesn&#39;t solve the problem for existing version : no obvious way to remove a 2.0 extension in 1.2 code…</div>
</div>
</div>
</blockquote>
</div>
<div><br>
</div>
<div>
<div>I thought about that too and, in my use case at least, that would be fine if:</div>
<div>- Extension for CDI version &lt; 2.0 use the default service provider mechanism,</div>
<div>- Extension for CDI version &gt;= 2.0 does not use the service provider mechanism,</div>
<div>- In CDI runtime version &gt;= 2.0 the old version is deactivated programatically while the new version is added programmatically.</div></div></div><div style="word-wrap:break-word"><div>
<div><br>
</div>
<div>
<blockquote type="cite" style="font-family:monospace;font-size:11px">
On 01 Oct 2015, at 21:15, Mark Struberg &lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt; wrote:<br>
<br>
You might look at DeltaSpikes ‚Deactivatable‘<br>
</blockquote>
</div>
<div><br>
</div>
</div></div><div style="word-wrap:break-word"><div><div>Thanks. I’d be very interested in what mechanism is used to prevent the container from loading the extension?</div></div></div><div style="word-wrap:break-word"><div>
<div><br style="font-family:monospace;font-size:11px">
<blockquote type="cite" style="font-family:monospace;font-size:11px">
On 01 Oct 2015, at 22:44, arjan tijms &lt;<a href="mailto:arjan.tijms@gmail.com" target="_blank">arjan.tijms@gmail.com</a>&gt; wrote:<br>
<br>
There&#39;s an existing issue for this: <a href="https://issues.jboss.org/browse/CDI-157" target="_blank">
https://issues.jboss.org/browse/CDI-157</a><br>
</blockquote>
</div>
<div><br>
</div>
</div></div><div style="word-wrap:break-word"><div><div>Thanks. Looks like this is a generic need, though pretty advanced. We’ll be able to track the outcome of this discussion in that ticket then.</div></div></div><div style="word-wrap:break-word"><div>
<div><br>
</div>
<div>Antonin</div>
</div></div></blockquote></div>