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) {
5353
5454 @ Override
5555 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+
5665 for (final Element controller :
5766 round .getElementsAnnotatedWith (typeElement (ClientPrism .PRISM_TYPE ))) {
5867 writeClient (controller );
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ public static PlatformAdapter platform() {
146146 return readAdapter ;
147147 }
148148
149+ public static void setPlatform (PlatformAdapter platform ) {
150+ readAdapter = platform ;
151+ }
152+
149153 public static String diAnnotation () {
150154 return diAnnotation ;
151155 }
You can’t perform that action at this time.
0 commit comments