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

Adds an option to generate spring controllers that return CompletableFutures #304

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

zettelmj
Copy link
Collaborator

Adds an option to generate spring controllers that return CompletableFutures

@zettelmj zettelmj requested a review from cjbooms July 27, 2024 13:29
@@ -41,6 +43,8 @@ object SpringImports {

val AUTHENTICATION = ClassName(Packages.SPRING_AUTHENTICATION, "Authentication")

val COMPLETABLE_FUTURE = ClassName(Packages.JAVA_UTIL_CONCURRENT, "CompletableFuture")
Copy link
Owner

Choose a reason for hiding this comment

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

Would the interface be better? eg CompletionStage

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably cleaner, although there is nothing else in the jdk the extends the interface.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed

@zettelmj zettelmj force-pushed the add_spring_controller_functions_completable_future branch from 5e8e8bf to fada4d1 Compare July 29, 2024 16:19
@zettelmj zettelmj requested a review from cjbooms July 29, 2024 16:20
@cjbooms
Copy link
Owner

cjbooms commented Jul 29, 2024

👍

@cjbooms
Copy link
Owner

cjbooms commented Jul 29, 2024

LGTM, just need to regenerate and update the able in the README.
When do you need it released, is it urgent?

@zettelmj
Copy link
Collaborator Author

LGTM, just need to regenerate and update the able in the README. When do you need it released, is it urgent?

I don't need it, I just got asked how to configure fabrikt so that CompletableFutures are returned. Since I had the time it felt like a useful addition.

@cjbooms cjbooms merged commit b39eae7 into master Jul 30, 2024
1 check passed
@ulrikandersen ulrikandersen deleted the add_spring_controller_functions_completable_future branch October 18, 2024 12:10
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 this pull request may close these issues.

2 participants