Class ServiceIDFactory
- java.lang.Object
-
- org.eclipse.ecf.discovery.identity.ServiceIDFactory
-
- All Implemented Interfaces:
IServiceIDFactory
public class ServiceIDFactory extends Object implements IServiceIDFactory
ServiceIDFactory implementation.
-
-
Constructor Summary
Constructors Constructor Description ServiceIDFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IServiceTypeID
createServiceTypeID(Namespace namespace, String serviceType)
Create an IServiceTypeID.IServiceTypeID
createServiceTypeID(Namespace namespace, String[] serviceType)
Create an IServiceTypeID.IServiceTypeID
createServiceTypeID(Namespace namespace, String[] serviceType, String[] protocols)
Create an IServiceTypeID.IServiceTypeID
createServiceTypeID(Namespace namespace, String[] serviceType, String[] scopes, String[] protocols, String namingAuthority)
Create an IServiceTypeID.IServiceTypeID
createServiceTypeID(Namespace namespace, IServiceTypeID aServiceTypeId)
Create an IServiceTypeID.static IServiceIDFactory
getDefault()
-
-
-
Method Detail
-
getDefault
public static IServiceIDFactory getDefault()
-
createServiceTypeID
public IServiceTypeID createServiceTypeID(Namespace namespace, String serviceType)
Description copied from interface:IServiceIDFactory
Create an IServiceTypeID. Creates an immutable IServiceTypeID.- Specified by:
createServiceTypeID
in interfaceIServiceIDFactory
- Parameters:
namespace
- the Namespace instance to create the service ID with. Must not benull
.serviceType
- The service type. Must not benull
.- Returns:
- IServiceTypeID created. Will not be
null
. - Since:
- 3.0
- See Also:
IServiceIDFactory.createServiceTypeID(org.eclipse.ecf.core.identity.Namespace, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String)
-
createServiceTypeID
public IServiceTypeID createServiceTypeID(Namespace namespace, String[] serviceType)
Description copied from interface:IServiceIDFactory
Create an IServiceTypeID. Creates an immutable IServiceTypeID.- Specified by:
createServiceTypeID
in interfaceIServiceIDFactory
- Parameters:
namespace
- the Namespace instance to create the service ID with. Must not benull
.serviceType
- Array containing the ordered naming hierarchy from 0...n. Must not benull
.- Returns:
- IServiceTypeID created. Will not be
null
. - Since:
- 3.0
- See Also:
IServiceIDFactory.createServiceTypeID(org.eclipse.ecf.core.identity.Namespace, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String)
-
createServiceTypeID
public IServiceTypeID createServiceTypeID(Namespace namespace, String[] serviceType, String[] scopes, String[] protocols, String namingAuthority)
Description copied from interface:IServiceIDFactory
Create an IServiceTypeID. Creates an immutable IServiceTypeID.- Specified by:
createServiceTypeID
in interfaceIServiceIDFactory
- Parameters:
namespace
- the Namespace instance to create the service ID with. Must not benull
.serviceType
- Array containing the ordered naming hierarchy from 0...n. Must not benull
.scopes
- Array containing all scopes orIServiceTypeID.DEFAULT_SCOPE
for default. Must not benull
.protocols
- Array containing all protocols orIServiceTypeID.DEFAULT_PROTO
for default. Must not benull
.namingAuthority
- the NamingAuthority orIServiceTypeID.DEFAULT_NA
for default. Must not benull
.- Returns:
- IServiceTypeID created. Will not be
null
. - Since:
- 3.0
- See Also:
IServiceIDFactory.createServiceTypeID(org.eclipse.ecf.core.identity.Namespace, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String)
-
createServiceTypeID
public IServiceTypeID createServiceTypeID(Namespace namespace, String[] serviceType, String[] protocols)
Description copied from interface:IServiceIDFactory
Create an IServiceTypeID. Creates an immutable IServiceTypeID. NamingAuthority will be set toIServiceTypeID.DEFAULT_NA
- Specified by:
createServiceTypeID
in interfaceIServiceIDFactory
- Parameters:
namespace
- the Namespace instance to create the service ID with. Must not benull
.serviceType
- Array containing the ordered naming hierarchy from 0...n. Must not benull
.protocols
- Array containing the protocols. Must not benull
.- Returns:
- IServiceTypeID created. Will not be
null
. - Since:
- 3.0
- See Also:
IServiceIDFactory.createServiceTypeID(org.eclipse.ecf.core.identity.Namespace, java.lang.String[], java.lang.String[])
-
createServiceTypeID
public IServiceTypeID createServiceTypeID(Namespace namespace, IServiceTypeID aServiceTypeId)
Description copied from interface:IServiceIDFactory
Create an IServiceTypeID. Creates an immutable IServiceTypeID from a non-null
IServiceTypeID
with a differentNamespace
.- Specified by:
createServiceTypeID
in interfaceIServiceIDFactory
- Parameters:
namespace
- the Namespace instance to create the service type ID with. Must not benull
.aServiceTypeId
- service type id. Must not benull
.- Returns:
- IServiceTypeID created. Will not be
null
. - Since:
- 3.0
- See Also:
IServiceIDFactory.createServiceTypeID(org.eclipse.ecf.core.identity.Namespace, org.eclipse.ecf.discovery.identity.IServiceTypeID)
-
-