Package org.kuali.rice.ksb.api.registry
Class ServiceEndpoint.Builder
java.lang.Object
org.kuali.rice.ksb.api.registry.ServiceEndpoint.Builder
- All Implemented Interfaces:
Serializable,ModelBuilder,ServiceEndpointContract
- Enclosing class:
ServiceEndpoint
public static final class ServiceEndpoint.Builder
extends Object
implements Serializable, ModelBuilder, ServiceEndpointContract
A builder which can be used to construct
ServiceEndpoint instances. Enforces the constraints of the ServiceEndpointContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static ServiceEndpoint.Buildercreate(ServiceEndpointContract contract) static ServiceEndpoint.Buildercreate(ServiceInfo.Builder info, ServiceDescriptor.Builder descriptor) Returns the service descriptor for this endpoint.getInfo()Returns the service information for this endpoint.voidsetDescriptor(ServiceDescriptor.Builder descriptor) voidsetInfo(ServiceInfo.Builder info)
-
Method Details
-
create
public static ServiceEndpoint.Builder create(ServiceInfo.Builder info, ServiceDescriptor.Builder descriptor) -
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getInfo
Description copied from interface:ServiceEndpointContractReturns the service information for this endpoint.- Specified by:
getInfoin interfaceServiceEndpointContract- Returns:
- the service information for this endpoint, should never return null
-
getDescriptor
Description copied from interface:ServiceEndpointContractReturns the service descriptor for this endpoint.- Specified by:
getDescriptorin interfaceServiceEndpointContract- Returns:
- the service descriptor for this endpoint, should never return null
-
setInfo
-
setDescriptor
-