mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-01 22:40:52 +00:00
This commit is contained in:
parent
a4f1a17502
commit
d0f659ec4d
@ -13,7 +13,7 @@ import java.util.Optional
|
||||
class {{classname}}Controller(
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate?
|
||||
) : {{classname}} {
|
||||
private val delegate: {{classname}}Delegate
|
||||
private lateinit var delegate: {{classname}}Delegate
|
||||
|
||||
init {
|
||||
this.delegate = Optional.ofNullable(delegate).orElse(object : {{classname}}Delegate {})
|
||||
|
@ -20,7 +20,7 @@ import com.google.gson.Gson
|
||||
{{/imports}}
|
||||
|
||||
class {{classname}}VertxProxyHandler(private val vertx: Vertx, private val service: {{classname}}, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
@ -10,7 +10,7 @@ import java.util.Optional
|
||||
class PetApiController(
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: PetApiDelegate?
|
||||
) : PetApi {
|
||||
private val delegate: PetApiDelegate
|
||||
private lateinit var delegate: PetApiDelegate
|
||||
|
||||
init {
|
||||
this.delegate = Optional.ofNullable(delegate).orElse(object : PetApiDelegate {})
|
||||
|
@ -10,7 +10,7 @@ import java.util.Optional
|
||||
class StoreApiController(
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: StoreApiDelegate?
|
||||
) : StoreApi {
|
||||
private val delegate: StoreApiDelegate
|
||||
private lateinit var delegate: StoreApiDelegate
|
||||
|
||||
init {
|
||||
this.delegate = Optional.ofNullable(delegate).orElse(object : StoreApiDelegate {})
|
||||
|
@ -10,7 +10,7 @@ import java.util.Optional
|
||||
class UserApiController(
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: UserApiDelegate?
|
||||
) : UserApi {
|
||||
private val delegate: UserApiDelegate
|
||||
private lateinit var delegate: UserApiDelegate
|
||||
|
||||
init {
|
||||
this.delegate = Optional.ofNullable(delegate).orElse(object : UserApiDelegate {})
|
||||
|
@ -20,7 +20,7 @@ import org.openapitools.server.api.model.ModelApiResponse
|
||||
import org.openapitools.server.api.model.Pet
|
||||
|
||||
class PetApiVertxProxyHandler(private val vertx: Vertx, private val service: PetApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
@ -19,7 +19,7 @@ import com.google.gson.Gson
|
||||
import org.openapitools.server.api.model.Order
|
||||
|
||||
class StoreApiVertxProxyHandler(private val vertx: Vertx, private val service: StoreApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
@ -19,7 +19,7 @@ import com.google.gson.Gson
|
||||
import org.openapitools.server.api.model.User
|
||||
|
||||
class UserApiVertxProxyHandler(private val vertx: Vertx, private val service: UserApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
@ -20,7 +20,7 @@ import org.openapitools.server.api.model.ModelApiResponse
|
||||
import org.openapitools.server.api.model.Pet
|
||||
|
||||
class PetApiVertxProxyHandler(private val vertx: Vertx, private val service: PetApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
@ -19,7 +19,7 @@ import com.google.gson.Gson
|
||||
import org.openapitools.server.api.model.Order
|
||||
|
||||
class StoreApiVertxProxyHandler(private val vertx: Vertx, private val service: StoreApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
@ -19,7 +19,7 @@ import com.google.gson.Gson
|
||||
import org.openapitools.server.api.model.User
|
||||
|
||||
class UserApiVertxProxyHandler(private val vertx: Vertx, private val service: UserApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
private val timerID: Long
|
||||
private lateinit var timerID: Long
|
||||
private var lastAccessed: Long = 0
|
||||
init {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user