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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy