public interface IServiceConfiguration
Modifier and Type | Method and Description |
---|---|
void |
disable(IService service)
Disables (removes) the service provider from this configuration.
|
String |
getId()
Get the unique ID for this configuration.
|
String |
getName()
Get the name for this configuration.
|
IServiceProvider |
getServiceProvider(IService service)
Get the service provider for a particular service in this configuration.
|
Set<IService> |
getServices()
Returns all of the services that are enabled in this configuration.
|
SortedSet<IService> |
getServicesByPriority()
Return the set of services that are enabled in this configuration
sorted by priority.
|
boolean |
isDisabled(IService service)
Returns true of the given service is not part of this configuration.
|
void |
setName(String name)
Set the name for this configuration.
|
void |
setServiceProvider(IService service,
IServiceProvider provider)
Set the service provider for a particular service in this configuration.
|
String getId()
String getName()
IServiceProvider getServiceProvider(IService service)
service
- service for which provider is requiredSet<IService> getServices()
SortedSet<IService> getServicesByPriority()
service
- service containing providersvoid setName(String name)
name
- the name of this configurationvoid setServiceProvider(IService service, IServiceProvider provider)
service
- service to set the provider forprovider
- provider for this serviceNullPointerException
- if service or provider is nullIllegalArgumentException
boolean isDisabled(IService service)
!getServices().contains(service)
If this method returns false then getServiceProvider()
will not return null.void disable(IService service)
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.