All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.client.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
package {{invokerPackage}}

{{#imports}}import {{import}}
{{/imports}}
import {{apiPackage}}._

import com.wordnik.swagger.client._

import java.io.Closeable

class {{clientName}}(config: SwaggerConfig) extends Closeable {
  lazy val locator: ServiceLocator = config.locator
  lazy val name: String = config.name

  private[this] val client = transportClient

  protected def transportClient: TransportClient = new RestClient(config)

  def close() {
    client.close()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy