|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IServiceConfiguration
An IServiceConfiguration represents a particular set of service providers for each known service. An IServiceConfiguration represents a mapping from IService to IServiceProvider. If there exists a mapping for a particular IService then that service is considered "enabled". If there is no mapping for a service then the service is considered "disabled" in this configuration. Disabling a service removes the service from the configuration. EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the RDT team.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
String getId()
String getName()
IServiceProvider getServiceProvider(IService service)
service - service for which provider is required
Set<IService> getServices()
SortedSet<IService> getServicesByPriority()
service - service containing providers
void setName(String name)
name - the name of this configuration
void setServiceProvider(IService service,
IServiceProvider provider)
service - service to set the provider forprovider - provider for this service
NullPointerException - if service or provider is null
IllegalArgumentExceptionboolean isDisabled(IService service)
!getServices().contains(service)
If this method returns false then getServiceProvider()
will not return null.
void disable(IService service)
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||