blob: 646fae8a9f4a06fe86e6441bc0c2d7c0fee51b97 (
plain) (
tree)
|
|
package xyz.driver.core
package rest
import scala.annotation.implicitNotFound
@implicitNotFound(
"Don't know how to communicate with service ${S}. Make sure an implicit ServiceDescriptor is" +
"available. A good place to put one is in the service's companion object.")
trait ServiceDescriptor[S] {
/** The service's name. Must be unique among all services. */
def name: String
/** Get an instance of the service. */
def connect(transport: HttpRestServiceTransport, url: String): S
}
|