@Beta
@Immutable
public class ServiceSpec
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Expectations |
expectations
Expectations about the required service.
|
java.lang.String |
name
A human readable name of the service.
|
ServiceType |
type
The type of the service dependency.
|
java.lang.String |
url
A URL that is identifying the required REST API.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static ServiceSpec |
serviceSpec(java.lang.String name,
java.lang.String url) |
static ServiceSpec |
serviceSpec(java.lang.String name,
java.lang.String url,
ServiceType type,
Expectations expectations)
Create a specification for a service that is required by this service.
|
java.lang.String |
toString() |
public final java.lang.String name
public final java.lang.String url
public final ServiceType type
public final Expectations expectations
public static ServiceSpec serviceSpec(java.lang.String name, java.lang.String url, ServiceType type, Expectations expectations)
name - A human readable name of the service.url - A URL that is identifying the required REST API. Generally a prefix of the accessed REST resource.type - The type of the service dependency.expectations - Expectations about the required service.public static ServiceSpec serviceSpec(java.lang.String name, java.lang.String url)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object