File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
http-generator-client/src/main/java/io/avaje/http/generator/client
http-generator-core/src/main/java/io/avaje/http/generator/core Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ public synchronized void init(ProcessingEnvironment processingEnv) {
53
53
54
54
@ Override
55
55
public boolean process (Set <? extends TypeElement > annotations , RoundEnvironment round ) {
56
+
57
+ final var platform = platform ();
58
+
59
+ if (platform instanceof ClientPlatformAdapter ) {
60
+
61
+ } else {
62
+ setPlatform (new ClientPlatformAdapter ());
63
+ }
64
+
56
65
for (final Element controller :
57
66
round .getElementsAnnotatedWith (typeElement (ClientPrism .PRISM_TYPE ))) {
58
67
writeClient (controller );
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ public static PlatformAdapter platform() {
146
146
return readAdapter ;
147
147
}
148
148
149
+ public static void setPlatform (PlatformAdapter platform ) {
150
+ readAdapter = platform ;
151
+ }
152
+
149
153
public static String diAnnotation () {
150
154
return diAnnotation ;
151
155
}
You can’t perform that action at this time.
0 commit comments