Package wt.federation

Class ServiceIdentifier

java.lang.Object
wt.federation._ServiceIdentifier
wt.federation.ServiceIdentifier
All Implemented Interfaces:
Externalizable, Serializable, wt.fc._NetFactor, wt.fc._ObjectMappable, NetFactor, ObjectMappable

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:
  • Field Details

  • Method Details

    • newServiceIdentifier

      public static ServiceIdentifier newServiceIdentifier(String id) throws 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:
      FederationServicesException
    • initialize

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

      Supported API: true
      Parameters:
      id -
      Throws:
      FederationServicesException
    • newServiceIdentifier

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

      Supported API: true
      Parameters:
      className -
      serviceName -
      Returns:
      ServiceIdentifier
      Throws:
      FederationServicesException
    • initialize

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

      Supported API: true
      Parameters:
      className -
      serviceName -
      Throws:
      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 FederationServicesException
      Return an instance of the service identified by this service identifier.

      Supported API: true
      Returns:
      FederatedService
      Throws:
      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