-
Notifications
You must be signed in to change notification settings - Fork 43
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
Adds an option to generate spring controllers that return CompletableFutures #304
Conversation
@@ -41,6 +43,8 @@ object SpringImports { | |||
|
|||
val AUTHENTICATION = ClassName(Packages.SPRING_AUTHENTICATION, "Authentication") | |||
|
|||
val COMPLETABLE_FUTURE = ClassName(Packages.JAVA_UTIL_CONCURRENT, "CompletableFuture") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
…tage change to CompletionStage
5e8e8bf
to
fada4d1
Compare
👍 |
LGTM, just need to regenerate and update the able in the README. |
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. |
Adds an option to generate spring controllers that return CompletableFutures