Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to register BuildCompatibleExtension in CDI SE without discovery #813

Open
manovotn opened this issue May 15, 2024 · 0 comments · May be fixed by #817
Open

Add the ability to register BuildCompatibleExtension in CDI SE without discovery #813

manovotn opened this issue May 15, 2024 · 0 comments · May be fixed by #817
Assignees

Comments

@manovotn
Copy link
Contributor

Some time ago I realized that while we added build compatible extensions, we didn't allow users to register them in SE programmatically.
The only option in SE is to discover them which is unfortunate as you often want a purely synthetic bean archive (to keep it minimal).

The SeContainerInitializer already allows this for portable extensions, see this code.
We could easily add an extra method with the same capability.

    public abstract SeContainerInitializer addBuildCompatibleExtensions(Class<? extends BuildCompatibleExtension>... extensions);

Note that I am currently adding the same in Weld under this issue but I really think this should be in spec API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant