<div dir="ltr">There's a solution at implementation level. Since extension developed for 1.2 contains unknown classes in 1.0, the impl could catch the "class not found" exception on an extension send a warning to user and don'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 <<a href="mailto:antonin@stefanutti.fr">antonin@stefanutti.fr</a>> 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 <<a href="mailto:antoine@sabot-durand.net" target="_blank">antoine@sabot-durand.net</a>> wrote:</div>
<div>
<div dir="ltr">
<div><br>
</div>
<div>Now this doesn'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 < 2.0 use the default service provider mechanism,</div>
<div>- Extension for CDI version >= 2.0 does not use the service provider mechanism,</div>
<div>- In CDI runtime version >= 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 <<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>> 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 <<a href="mailto:arjan.tijms@gmail.com" target="_blank">arjan.tijms@gmail.com</a>> wrote:<br>
<br>
There'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>