<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 02 Oct 2015, at 10:54, Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net" class="">antoine@sabot-durand.net</a>&gt; wrote:</div>
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<div class="">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 class="">
</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><br class="">
</div>
<div>
<blockquote type="cite" style="font-family: monospace; font-size: 11px;" class="">
On 01 Oct 2015, at 21:15, Mark Struberg &lt;<a href="mailto:struberg@yahoo.de" class="">struberg@yahoo.de</a>&gt; wrote:<br class="">
<br class="">
You might look at DeltaSpikes ‚Deactivatable‘<br class="">
</blockquote>
</div>
<div><br class="">
</div>
<div class="">Thanks. I’d be very interested in what mechanism is used to prevent the container from loading the extension?</div>
<div class=""><br style="font-family: monospace; font-size: 11px;" class="">
<blockquote type="cite" style="font-family: monospace; font-size: 11px;" class="">
On 01 Oct 2015, at 22:44, arjan tijms &lt;<a href="mailto:arjan.tijms@gmail.com" class="">arjan.tijms@gmail.com</a>&gt; wrote:<br class="">
<br class="">
There's an existing issue for this: <a href="https://issues.jboss.org/browse/CDI-157" class="">
https://issues.jboss.org/browse/CDI-157</a><br class="">
</blockquote>
</div>
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">Antonin</div>
</div>
</body>
</html>