Support programatically customizing SeContainer #2439
Labels
⌛ stale
Will soon be closed by stalebot unless there is activity
🙏 help wanted
Help wanted - not prioritized by core team
⚡ enhancement
Request for new functionality
The
CdiJakartaFactory
creates a container using theSeContainerInitializer
.This starts a CDI application without any customizations. This is less then ideal when testing as certain parts may need to be stubbed out. As solution to this would be similar to #2432 and #1911 where a
Backend
implementation is used to scan for classes that implement aSeContainerInitializerProvider
. TheCdiJakartaFactory
can then use this provider to create a cutomized initializer.So as a quick sketch:
Alternatively, or additionally, instead of asking the user to provide the entire container, we can ask the user to customize the existing container.
I don't know much about CDI so I think this is best left to the best judgement of people who use CDI.
The text was updated successfully, but these errors were encountered: