cdi icon indicating copy to clipboard operation
cdi copied to clipboard

Allow registering BCE in CDI SE without discovery

Open manovotn opened this issue 1 year ago • 3 comments

Fixes #813

Adds a new method to SeContainerInitializer which allows users to register build compatible extensions (BCE) without the need for discovery.

I am aware the SeContainerInitializer has two variants of the add method for portable extensions (PE), one of which allows you to pass in pre-initialized PE. I intentionally skipped that for BCE as those were designed with stricter environments in mind. However, if there is need/want for this we can add it as well.

manovotn avatar May 21 '24 11:05 manovotn

Apparently the formatter doesn't like the file...?

Ladicek avatar May 21 '24 11:05 Ladicek

Apparently the formatter doesn't like the file...?

Eh, not just that, I merely forgot to push the rebased version which also adapts tests with dummy initializer impls. Should be good now.

manovotn avatar May 21 '24 11:05 manovotn

I've also added the specification text (just a mention of the method being there) and created a CDI TCK tracking issue (https://github.com/jakartaee/cdi-tck/issues/585).

manovotn avatar May 21 '24 12:05 manovotn

I've rebased this against current main since it has been hanging here for a while. As there was already an approval, I am going to merge this once the CI passes.

manovotn avatar Mar 08 '25 10:03 manovotn