public interface IService
IServiceProvider
Modifier and Type | Method and Description |
---|---|
IServiceCategory |
getCategory()
Returns the service category that contains this service or
null if the service is not associated with a category.
|
String |
getId()
Get the ID of this service provider.
|
String |
getName()
Get the name of this service provider.
|
Set<String> |
getNatures()
Get the set of natures that this service applies to.
|
IServiceProvider |
getNullProvider()
Returns the special null "no-op" service provider, or null if there is none.
|
Integer |
getPriority()
Get the priority of this service.
|
IServiceProviderDescriptor |
getProviderDescriptor(String id)
Gets a specific provider of this service.
|
Set<IServiceProviderDescriptor> |
getProviders()
Get the set of all providers for this service.
|
SortedSet<IServiceProviderDescriptor> |
getProvidersByPriority()
Return the set of providers sorted by priority
|
void |
removeServiceProvider(IServiceProviderDescriptor provider)
Remove service provider from list of providers for this service.
|
String getId()
String getName()
Set<String> getNatures()
Integer getPriority()
IServiceProviderDescriptor getProviderDescriptor(String id)
id
- The unique ID of the service requested.Set<IServiceProviderDescriptor> getProviders()
SortedSet<IServiceProviderDescriptor> getProvidersByPriority()
service
- service containing providersvoid removeServiceProvider(IServiceProviderDescriptor provider)
provider
- provider to removeIServiceCategory getCategory()
IServiceProvider getNullProvider()
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.