wt.federation
Class ServiceIdentifier

java.lang.Object
  extended by wt.federation.ServiceIdentifier
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable

public class ServiceIdentifier
extends Object
implements ObjectMappable, Externalizable

Use the newServiceIdentifier static factory method(s), not the ServiceIdentifier constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static String CLASS_NAME
          Label for the attribute.
static String ID_SEPARATOR
          

Supported API: true
static String SERVICE_NAME
          Label for the attribute.
 
Method Summary
 boolean equals(Object obj)
          Return true if a specified object is a serviceIdentifier and its className and serviceName properties match the corresponding values of this object.
 String getClassName()
          Gets the value of the attribute: CLASS_NAME.
 FederatedService getService()
          Return an instance of the service identified by this service identifier.
 String getServiceName()
          Gets the value of the attribute: SERVICE_NAME.
 int hashCode()
          Return the hash code of the service identifier.
protected  void initialize()
          Supports initialization, following construction of an instance.
protected  void initialize(String id)
          Supports initialization, following construction of an instance.
protected  void initialize(String className, String serviceName)
          Supports initialization, following construction of an instance.
static ServiceIdentifier newServiceIdentifier()
          Constructor retuning an instance with null className and serviceName properties.
static ServiceIdentifier newServiceIdentifier(String id)
          Constructor returning an instance whose className and serviceName are derviced from the specified identifier.
static ServiceIdentifier newServiceIdentifier(String className, String serviceName)
          Constructor returning an instance initialized with the specified className and serviceName property values.
 void setClassName(String a_ClassName)
          Sets the value of the attribute: CLASS_NAME.
 void setServiceName(String a_ServiceName)
          Sets the value of the attribute: SERVICE_NAME.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final String CLASS_NAME
Label for the attribute.

Supported API: true

See Also:
Constant Field Values

SERVICE_NAME

public static final String SERVICE_NAME
Label for the attribute.

Supported API: true

See Also:
Constant Field Values

ID_SEPARATOR

public static final String ID_SEPARATOR


Supported API: true

See Also:
Constant Field Values
Method Detail

getClassName

public String getClassName()
Gets the value of the attribute: CLASS_NAME.

Supported API: true

Returns:
String

setClassName

public void setClassName(String a_ClassName)
                  throws WTPropertyVetoException
Sets the value of the attribute: CLASS_NAME.

Supported API: true

Parameters:
a_ClassName -
Throws:
WTPropertyVetoException

getServiceName

public String getServiceName()
Gets the value of the attribute: SERVICE_NAME.

Supported API: true

Returns:
String

setServiceName

public void setServiceName(String a_ServiceName)
                    throws WTPropertyVetoException
Sets the value of the attribute: SERVICE_NAME.

Supported API: true

Parameters:
a_ServiceName -
Throws:
WTPropertyVetoException

newServiceIdentifier

public static ServiceIdentifier newServiceIdentifier(String id)
                                              throws wt.federation.FederationServicesException
Constructor returning an instance whose className and serviceName are derviced from the specified identifier. The syntax of the identifier must be className:serviceName.

Supported API: true

Parameters:
id -
Returns:
ServiceIdentifier
Throws:
wt.federation.FederationServicesException

initialize

protected void initialize(String id)
                   throws wt.federation.FederationServicesException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
id -
Throws:
wt.federation.FederationServicesException

newServiceIdentifier

public static ServiceIdentifier newServiceIdentifier(String className,
                                                     String serviceName)
                                              throws wt.federation.FederationServicesException
Constructor returning an instance initialized with the specified className and serviceName property values.

Supported API: true

Parameters:
className -
serviceName -
Returns:
ServiceIdentifier
Throws:
wt.federation.FederationServicesException

initialize

protected void initialize(String className,
                          String serviceName)
                   throws wt.federation.FederationServicesException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
className -
serviceName -
Throws:
wt.federation.FederationServicesException

newServiceIdentifier

public static ServiceIdentifier newServiceIdentifier()
                                              throws WTException
Constructor retuning an instance with null className and serviceName properties.

Supported API: true

Returns:
ServiceIdentifier
Throws:
WTException

initialize

protected void initialize()
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Throws:
WTException

getService

public FederatedService getService()
                            throws wt.federation.FederationServicesException
Return an instance of the service identified by this service identifier.

Supported API: true

Returns:
FederatedService
Throws:
wt.federation.FederationServicesException

equals

public boolean equals(Object obj)
Return true if a specified object is a serviceIdentifier and its className and serviceName properties match the corresponding values of this object.

Supported API: true

Overrides:
equals in class Object
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Return the hash code of the service identifier.

Supported API: true

Overrides:
hashCode in class Object
Returns:
int