|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.services.DefaultServiceManager
Default implementation of the ServiceManager.
Uses a com.sdm.quasar.client.core.common.services.impl.ServiceNode to manage the services.
| Constructor Summary | |
DefaultServiceManager()
Constructor. |
|
| Method Summary | |
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. |
Service |
getService(java.lang.Class service)
Returns the service implementation registered with the service manager. |
boolean |
hasService(java.lang.Class service)
Tests, whether a service is registered with the service manager. |
void |
registerService(java.lang.Class service,
Service implementation)
Registers a service with the manager. |
void |
replaceService(java.lang.Class service,
Service implementation)
Works like registerService(Class, Service), but overwrites
any existing service mapping. |
void |
unregisterService(java.lang.Class service,
Service implementation)
Unregisters a service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultServiceManager()
| Method Detail |
public void registerService(java.lang.Class service,
Service implementation)
ServiceManagerNote that a service should be unregistered before the life cycle of its provider ends.
registerService in interface ServiceManagerservice - the interface that defines the serviceimplementation - the object implementing the serviceServiceManager.registerService(java.lang.Class, com.sdm.quasar.client.core.common.services.Service)
public void replaceService(java.lang.Class service,
Service implementation)
ServiceManagerServiceManager.registerService(Class, Service), but overwrites
any existing service mapping.
replaceService in interface ServiceManagerservice - the interface that defines the serviceimplementation - the object implementing the serviceServiceManager.replaceService(java.lang.Class, com.sdm.quasar.client.core.common.services.Service)
public void unregisterService(java.lang.Class service,
Service implementation)
ServiceManager
unregisterService in interface ServiceManagerservice - the interface that defines the serviceimplementation - the object implementing the serviceServiceManager.unregisterService(java.lang.Class, com.sdm.quasar.client.core.common.services.Service)public boolean hasService(java.lang.Class service)
ServiceProvider
hasService in interface ServiceProviderservice - the interface that defines the service
ServiceProvider.hasService(java.lang.Class)public Service getService(java.lang.Class service)
ServiceProvider
getService in interface ServiceProviderservice - the interface that defines the service
ServiceProvider.getService(java.lang.Class)
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
SystemInfoProviderSystemInfoOptions).
The information can be appended to the tree by adding new child
SystemInformationNodes to the root node given using the
SystemInfoNode.createChild(String) method and by setting information
attributes the these nodes or the given root node.
collectSystemInfo in interface SystemInfoProviderroot - the SystemInfoNode to add information to (guaranteed to be not null)options - contains additional options, that might influence the amount of
information added to the tree (guaranteed to be not null)SystemInfoProvider.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||