org.kuali.rice.ksb.api.registry
Class ServiceDescriptor

java.lang.Object
  extended by org.kuali.rice.ksb.api.registry.ServiceDescriptor
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete, ServiceDescriptorContract

public final class ServiceDescriptor
extends Object
implements org.kuali.rice.core.api.mo.ModelObjectComplete, ServiceDescriptorContract

Immutable implementation of the ServiceDescriptorContract interface. Includes a serialized XML representation of the ServiceConfiguration for the service.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Nested Class Summary
static class ServiceDescriptor.Builder
          A builder which can be used to construct ServiceDescriptor instances.
 
Method Summary
 boolean equals(Object object)
           
 String getDescriptor()
          Returns an XML value which can be used to materialize the ServiceConfiguration for the service.
 String getId()
          Returns the id of this service descriptor.
 Long getVersionNumber()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public String getId()
Description copied from interface: ServiceDescriptorContract
Returns the id of this service descriptor. This value should be unique across service descriptors. This value is generated when the service is published to the registry, so this value can be null if the service has not yet been published to the registry.

Specified by:
getId in interface ServiceDescriptorContract
Returns:
the id of this service descriptor, or null if the service and it's descriptor has not yet been published to the registry

getDescriptor

public String getDescriptor()
Description copied from interface: ServiceDescriptorContract
Returns an XML value which can be used to materialize the ServiceConfiguration for the service.

Specified by:
getDescriptor in interface ServiceDescriptorContract
Returns:
the XML representation of the ServiceConfiguration for the service, should never return a null or blank value

getVersionNumber

public Long getVersionNumber()
Specified by:
getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned

hashCode

public int hashCode()
Specified by:
hashCode in interface org.kuali.rice.core.api.mo.ModelObjectComplete
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Specified by:
equals in interface org.kuali.rice.core.api.mo.ModelObjectComplete
Overrides:
equals in class Object

toString

public String toString()
Specified by:
toString in interface org.kuali.rice.core.api.mo.ModelObjectBasic
Overrides:
toString in class Object


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.