Gets rid of the smelly vars inside Scala api.mustache allowing the
override of default basePath and ApiInvoker on the constructor.
Previously the code for overriding was:
val myApi = new MyApi()
myApi.basePath = "http://myapi.endpoint.com"
myApi.apiInvoker = new ApiInvoker(authScheme = "SPNEGO")
after the change everything can be simply declared in the constructor:
val myApi = new MyApi("http://myapi.endpoint.com",
new ApiInvoker(authScheme = "SPNEGO"))
When generating Scala client, the ApiInvoker is a class with
overridable options, avoiding the need of public vars to be
manually modified.
Additionally it is possible to plug the AsyncHttp protocol
for Jersey in order to achieve Netty support and maximum scalability.
NOTE: Support for Scala 2.10.0-3 removed as largely obsolete