Modifier and Type | Class and Description |
---|---|
static class |
Services.ServiceBuilder |
Constructor and Description |
---|
Services() |
Modifier and Type | Method and Description |
---|---|
static Service |
create(String serviceName,
String serviceEndpointPrefix)
Deprecated.
Use
serviceBuilder() instead |
static Service |
getServiceByName(String serviceName)
Get Service instance based on service name.
|
static Services.ServiceBuilder |
serviceBuilder() |
@Deprecated public static Service create(String serviceName, String serviceEndpointPrefix)
serviceBuilder()
insteadCreate a new service definition. If the service has already been registered with different values, an IllegalArgumentException will be raised. If the service has already been registered, the existing definition will be returned.
serviceName
- The unique service name.serviceEndpointPrefix
- The endpoint prefix.public static Service getServiceByName(String serviceName)
Get Service instance based on service name.
serviceName
- service name should be UPPER CASE.public static Services.ServiceBuilder serviceBuilder()
Copyright © 2016–2024. All rights reserved.