org.kuali.rice.ksb.api.registry
Class ServiceEndpoint.Builder

java.lang.Object
  extended by 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:
Serialized Form

Method Summary
 ServiceEndpoint build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static ServiceEndpoint.Builder create(ServiceEndpointContract contract)
           
static ServiceEndpoint.Builder create(ServiceInfo.Builder info, ServiceDescriptor.Builder descriptor)
           
 ServiceDescriptor.Builder getDescriptor()
          Returns the service descriptor for this endpoint.
 ServiceInfo.Builder getInfo()
          Returns the service information for this endpoint.
 void setDescriptor(ServiceDescriptor.Builder descriptor)
           
 void setInfo(ServiceInfo.Builder info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ServiceEndpoint.Builder create(ServiceInfo.Builder info,
                                             ServiceDescriptor.Builder descriptor)

create

public static ServiceEndpoint.Builder create(ServiceEndpointContract contract)

build

public ServiceEndpoint build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getInfo

public ServiceInfo.Builder getInfo()
Description copied from interface: ServiceEndpointContract
Returns the service information for this endpoint.

Specified by:
getInfo in interface ServiceEndpointContract
Returns:
the service information for this endpoint, should never return null

getDescriptor

public ServiceDescriptor.Builder getDescriptor()
Description copied from interface: ServiceEndpointContract
Returns the service descriptor for this endpoint.

Specified by:
getDescriptor in interface ServiceEndpointContract
Returns:
the service descriptor for this endpoint, should never return null

setInfo

public void setInfo(ServiceInfo.Builder info)

setDescriptor

public void setDescriptor(ServiceDescriptor.Builder descriptor)


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.