generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
fix: Drop verb client interfaces (#3110)
Drop the `VerbClient`, `VerbClientSink`, `VerbClientSource`, `VerbClientEmpty` interfaces. They conflict with verbs that use primitive params and responses. Fixes #2757
- v0.420.1
- v0.420.0
- v0.419.0
- v0.418.0
- v0.417.0
- v0.416.0
- v0.415.1
- v0.415.0
- v0.414.0
- v0.413.2
- v0.413.1
- v0.413.0
- v0.412.6
- v0.412.5
- v0.412.4
- v0.412.3
- v0.412.2
- v0.412.1
- v0.412.0
- v0.411.0
- v0.410.2
- v0.410.1
- v0.410.0
- v0.409.0
- v0.408.2
- v0.408.1
- v0.408.0
- v0.407.4
- v0.407.3
- v0.407.2
- v0.407.1
- v0.407.0
- v0.406.0
- v0.405.5
- v0.405.4
- v0.405.3
- v0.405.2
- v0.405.1
- v0.405.0
- v0.404.1
- v0.404.0
- v0.403.2
- v0.403.1
- v0.403.0
- v0.402.0
- v0.401.0
- v0.400.0
- v0.399.0
- v0.398.1
- v0.398.0
- v0.397.2
- v0.397.1
- v0.397.0
- v0.396.0
- v0.395.0
- v0.394.1
- v0.394.0
- v0.393.1
- v0.393.0
- v0.392.2
- v0.392.1
- v0.392.0
- v0.391.2
- v0.391.1
- v0.391.0
- v0.390.0
- v0.389.0
- v0.388.0
- v0.387.2
- v0.387.1
- v0.387.0
- v0.386.3
- v0.386.2
- v0.386.1
- v0.386.0
- v0.385.0
1 parent
4f9d72b
commit 0a53566
Showing
10 changed files
with
150 additions
and
224 deletions.
There are no files selected for viewing
252 changes: 104 additions & 148 deletions
252
...e/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/VerbProcessor.java
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...untime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/VerbType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package xyz.block.ftl.deployment; | ||
|
||
public enum VerbType { | ||
VERB, | ||
SINK, | ||
SOURCE, | ||
EMPTY | ||
} |
19 changes: 11 additions & 8 deletions
19
jvm-runtime/ftl-runtime/common/runtime/src/main/java/xyz/block/ftl/VerbClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package xyz.block.ftl; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* A client for a specific verb. | ||
* | ||
* The sink source and empty interfaces allow for different call signatures. | ||
* | ||
* @param <P> The verb parameter type | ||
* @param <R> The verb return type | ||
* Annotation that is used to define a verb client | ||
*/ | ||
public interface VerbClient<P, R> { | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface VerbClient { | ||
|
||
R call(P param); | ||
String module() default ""; | ||
|
||
String name(); | ||
} |
18 changes: 0 additions & 18 deletions
18
jvm-runtime/ftl-runtime/common/runtime/src/main/java/xyz/block/ftl/VerbClientDefinition.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
jvm-runtime/ftl-runtime/common/runtime/src/main/java/xyz/block/ftl/VerbClientEmpty.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
jvm-runtime/ftl-runtime/common/runtime/src/main/java/xyz/block/ftl/VerbClientSink.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
jvm-runtime/ftl-runtime/common/runtime/src/main/java/xyz/block/ftl/VerbClientSource.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters