Skip to content

Commit 603af01

Browse files
author
jpfinne
committed
Merge master
1 parent 7bd73f8 commit 603af01

2 files changed

Lines changed: 42 additions & 7 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) ({{{generatorVersion}}}).
3+
* https://openapi-generator.tech
4+
* Do not edit the class manually.
5+
*/
6+
package {{configPackage}};
7+
8+
{{#apiInfo}}
9+
{{#apis}}
10+
import {{apiPackage}}.{{classname}};
11+
{{/apis}}
12+
{{/apiInfo}}
13+
14+
import org.springframework.context.annotation.Bean;
15+
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
16+
17+
public abstract class HttpInterfacesAbstractConfigurator {
18+
19+
private final HttpServiceProxyFactory factory;
20+
21+
public HttpInterfacesAbstractConfigurator(final HttpServiceProxyFactory factory) {
22+
this.factory = factory;
23+
}
24+
25+
{{#apiInfo}}
26+
{{#apis}}
27+
@Bean(name = "{{configPackage}}.HttpInterfacesAbstractConfigurator.{{classVarName}}")
28+
{{classname}} {{classVarName}}HttpProxy() {
29+
return factory.createClient({{classname}}.class);
30+
}
31+
32+
{{/apis}}
33+
{{/apiInfo}}
34+
35+
}

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/pom.mustache renamed to modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/pom-sb3.mustache

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,20 @@
8989
<version>0.2.9</version>
9090
</dependency>
9191
{{/openApiNullable}}
92-
{{#lombok}}
93-
<dependency>
94-
<groupId>org.projectlombok</groupId>
95-
<artifactId>lombok</artifactId>
96-
<optional>true</optional>
97-
</dependency>
98-
{{/lombok}}
9992
{{#useJspecify}}
10093
<dependency>
10194
<groupId>org.jspecify</groupId>
10295
<artifactId>jspecify</artifactId>
10396
<version>1.0.0</version>
10497
</dependency>
10598
{{/useJspecify}}
99+
{{#lombok}}
100+
<dependency>
101+
<groupId>org.projectlombok</groupId>
102+
<artifactId>lombok</artifactId>
103+
<optional>true</optional>
104+
</dependency>
105+
{{/lombok}}
106106
<dependency>
107107
<groupId>org.springframework.boot</groupId>
108108
<artifactId>spring-boot-starter-test</artifactId>

0 commit comments

Comments
 (0)