use async http client with service locator

This commit is contained in:
Ivan Porto Carrero 2013-05-12 20:13:58 -07:00
parent 023013b6fe
commit 81c103b12d
2 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,8 @@ import apis._
import java.io.Closeable
class {{clientName}}(config: SwaggerConfig) extends Closeable {
val baseUrl = config.baseUrl
val locator = config.locator
val name = config.name
val dataFormat = config.dataFormat
private[this] val client = transportClient

View File

@ -2,9 +2,7 @@ organization := "{{package}}"
name := "{{projectName}}-client"
scalaVersion := "2.10.0"
libraryDependencies += "com.wordnik.swagger" %% "swagger-async-httpclient" % "0.1.6"
libraryDependencies += "com.wordnik.swagger" %% "swagger-async-httpclient" % "0.2.0"
libraryDependencies += "joda-time" % "joda-time" % "2.2"