com.thoughtworks.microbuilder.play.OutgoingStub.scala Maven / Gradle / Ivy
The newest version!
package com.thoughtworks.microbuilder.play
import com.thoughtworks.microbuilder.core.IRouteConfiguration
import jsonStream.rpc.IJsonService
import scala.language.experimental.macros
/**
* @author 杨博 (Yang Bo) <[email protected]>
*/
trait OutgoingStub[Service] {
def routeConfiguration: IRouteConfiguration
def outgoingServiceProxy(jsonService: IJsonService): Service
}
object OutgoingStub {
implicit def apply[Service]: OutgoingStub[Service] = macro Macros.newOutgoingStub
}