public class GCoreServiceBuilder extends Object implements GCoreServiceDSL.NameClause, GCoreServiceDSL.CoordinateClause, GCoreServiceDSL.StubClause
GCoreService
instances.Constructor and Description |
---|
GCoreServiceBuilder() |
Modifier and Type | Method and Description |
---|---|
<T> GCoreService<T> |
andInterface(Class<T> type)
Sets the stub interface of the target service.
|
GCoreServiceDSL.StubClause |
coordinates(String gcubeClass,
String gcubeName)
Sets the gCube coordinates of the target service
|
static GCoreServiceDSL.NameClause |
service()
Starts the bulding process for a
GCoreService . |
GCoreServiceDSL.CoordinateClause |
withName(QName name)
Sets the qualified name of the target service.
|
public static GCoreServiceDSL.NameClause service()
GCoreService
.public GCoreServiceDSL.CoordinateClause withName(QName name)
GCoreServiceDSL.NameClause
withName
in interface GCoreServiceDSL.NameClause
name
- the qualified name of the target servicepublic GCoreServiceDSL.StubClause coordinates(String gcubeClass, String gcubeName)
GCoreServiceDSL.CoordinateClause
coordinates
in interface GCoreServiceDSL.CoordinateClause
gcubeClass
- the gCube class of the target servicegcubeName
- the gCube name of the target servicepublic <T> GCoreService<T> andInterface(Class<T> type)
GCoreServiceDSL.StubClause
andInterface
in interface GCoreServiceDSL.StubClause
type
- the interfaceGCoreService
that described the target service.Copyright © 2019. All Rights Reserved.