SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework.util
Class ConnectivityIdFactory

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.util.ConnectivityIdFactory

public final class ConnectivityIdFactory
extends java.lang.Object

A factory to create Id objects in Crawlers and Agents.


Method Summary
 Id createId(java.lang.String dataSourceId, Attribute[] idAttributes)
          Create an Id object based on the given Attributes.
static ConnectivityIdFactory getInstance()
          Returns the singleton instance of the IdFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectivityIdFactory getInstance()
Returns the singleton instance of the IdFactory.

Returns:
the IdFactory

createId

public Id createId(java.lang.String dataSourceId,
                   Attribute[] idAttributes)
Create an Id object based on the given Attributes.

Parameters:
dataSourceId - the dataSourceId. Must not be null or empty.
idAttributes - an array of Attribute objects whose values are used to create the Id. Must not be null or empty.
Returns:
the Id object

SMILA (incubation) API documentation