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

4.x: Custom main class support for Helidon Inject with full ApplicationBinding #9840

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

tomas-langer
Copy link
Member

@tomas-langer tomas-langer commented Feb 26, 2025

Resolves #9848

Added a new annotation to generate application binding from annotation processor, to fully support custom main classes.

Currently the ApplicationBinding class gets generated by a Maven plugin, so it can only be used from classes generated there as well (i.e. the generated ApplicationMain).
If we want to use full generated binding from a custom Main class, a placeholder (that does the right thing) must be generated during annotation processing, so it can be "forward-referenced" from the main class.

Added a custom main to inject tests with the annotation, as that validates that it compiles (it did not compile before this change).

This is a good to have for 4.2.0

…n processor, to fully support custom main classes.
@tomas-langer tomas-langer added enhancement New feature or request 4.x Version 4.x declarative Helidon Declarative labels Feb 26, 2025
@tomas-langer tomas-langer added this to the 4.2.0 milestone Feb 26, 2025
@tomas-langer tomas-langer self-assigned this Feb 26, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 26, 2025
@tomas-langer tomas-langer merged commit 1097055 into helidon-io:main Feb 28, 2025
62 checks passed
@tomas-langer tomas-langer deleted the inject-main branch February 28, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x declarative Helidon Declarative enhancement New feature or request OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x: Service registry main class approach finalized
2 participants