Class ServiceIDFactory
java.lang.Object
org.eclipse.ecf.discovery.identity.ServiceIDFactory
- All Implemented Interfaces:
IServiceIDFactory
ServiceIDFactory implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateServiceTypeID
(Namespace namespace, String serviceType) Create an IServiceTypeID.createServiceTypeID
(Namespace namespace, String[] serviceType) Create an IServiceTypeID.createServiceTypeID
(Namespace namespace, String[] serviceType, String[] protocols) Create an IServiceTypeID.createServiceTypeID
(Namespace namespace, String[] serviceType, String[] scopes, String[] protocols, String namingAuthority) Create an IServiceTypeID.createServiceTypeID
(Namespace namespace, IServiceTypeID aServiceTypeId) Create an IServiceTypeID.static IServiceIDFactory
-
Constructor Details
-
ServiceIDFactory
public ServiceIDFactory()
-
-
Method Details
-
getDefault
-
createServiceTypeID
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:
-
createServiceTypeID
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:
-
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:
-
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:
-
createServiceTypeID
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:
-