Openwings API Documentation (v1.0)

net.openwings.component.utilities
Class ServiceDescriptor

java.lang.Object
  |
  +--net.openwings.component.utilities.ServiceDescriptor
All Implemented Interfaces:
java.io.Serializable

public class ServiceDescriptor
extends java.lang.Object
implements java.io.Serializable

This class is used to provide metadata about a service being implemented or used by a component.

See Also:
Serialized Form

Constructor Summary
ServiceDescriptor(java.lang.Class serviceInterface, UniqueID uniqueID, boolean implementsInterface)
          This is the single public constructor for the ServiceDescriptor class.
 
Method Summary
 boolean equals(java.lang.Object obj)
          overrides default equals() method.
 boolean getImplementsInterface()
          This method tells whether this service is implemented locally or remotely.
 java.lang.String getName()
          This method returns the name of the service.
 java.lang.Class getServiceInterface()
          This method returns the class of the service interface.
 UniqueID getUniqueID()
          This method returns the unique identifier for the service.
 int hashCode()
          overrides default hashCode() method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDescriptor

public ServiceDescriptor(java.lang.Class serviceInterface,
                         UniqueID uniqueID,
                         boolean implementsInterface)
This is the single public constructor for the ServiceDescriptor class.

Parameters:
serviceInterface - the interface this service implments.
uniqueID - the unique id of this service
implementsInterface - true if the component implements the interface, false if the component calls the interface
Method Detail

getName

public java.lang.String getName()
This method returns the name of the service.

Returns:
String class name of the inteface

getUniqueID

public UniqueID getUniqueID()
This method returns the unique identifier for the service.

Returns:
unique identifier for the service.

getServiceInterface

public java.lang.Class getServiceInterface()
This method returns the class of the service interface.

Returns:
Class class of the service interface.

getImplementsInterface

public boolean getImplementsInterface()
This method tells whether this service is implemented locally or remotely. By getting the associated ConnectorDescriptors one can tell exactly what proxy this interface repesents.

Returns:
true if the component implements the interface, false if the component calls the interface

equals

public boolean equals(java.lang.Object obj)
overrides default equals() method.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
overrides default hashCode() method.

Overrides:
hashCode in class java.lang.Object

Openwings API Documentation (v1.0)