I thought about that too and, in my use case at least, that would be fine if:
- Extension for CDI version < 2.0 use the default service provider mechanism,
- Extension for CDI version >= 2.0 does not use the service provider mechanism,
- In CDI runtime version >= 2.0 the old version is deactivated programatically while the new version is added programmatically.
On 01 Oct 2015, at 21:15, Mark Struberg <struberg@yahoo.de> wrote:
You might look at DeltaSpikes ‚Deactivatable‘
Thanks. I’d be very interested in what mechanism is used to prevent the container from loading the extension?
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.
Antonin