blob: 646fae8a9f4a06fe86e6441bc0c2d7c0fee51b97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
}
|