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

Prototype builder update #7281

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

tomas-langer
Copy link
Member

@tomas-langer tomas-langer commented Jul 31, 2023

Fixes #7212
Fixes #7283

Also changed interceptor to decorator, as interceptor not needed for builders

@tomas-langer tomas-langer self-assigned this Jul 31, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 31, 2023
@tomas-langer tomas-langer added 4.x Version 4.x builder Related to the builder support and removed OCA Verified All contributors have signed the Oracle Contributor Agreement. labels Jul 31, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 31, 2023
- builder no longer implements prototype
- interceptor changed to decorator
- builder methods now return Optional where appropriate
- builder interceptor now a decorator
@tomas-langer tomas-langer force-pushed the 7212-prototype-builder branch from 1a5c15a to 633b19d Compare July 31, 2023 21:09
@tomas-langer
Copy link
Member Author

Rebased on main

@tomas-langer tomas-langer mentioned this pull request Jul 31, 2023
16 tasks
Copy link
Contributor

@romain-grecourt romain-grecourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following does not compile anymore.

WebServer.builder().mediaContext(MediaContext.builder());

The builder should have a variant of the mediaContext method that accepts Supplier<MediaContext>.

@tomas-langer
Copy link
Member Author

I would prefer to add the methods that accept supplier as a follow up to this issue. This is fixing the problem of sending builder where we should have sent a built value.

@helidon-io helidon-io deleted a comment from tomas-langer Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x builder Related to the builder support OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants