com.sdm.quasar.client.core.common.sysinfo
Interface SystemInfoRegistry

All Known Subinterfaces:
SystemInfoService
All Known Implementing Classes:
DefaultSystemInfoRegistry, DefaultSystemInfoService

public interface SystemInfoRegistry

A SystemInfoRegistry allows to register root SystemInfoProviders to register them at a central registry for a special information class. This is useful for users, because they so can gain access to this root SystemInfoProviders.

In normal use this registry will only be accessd by helper classes.

Version:
1.$Revision$
Author:
Thomas Wolf

Method Summary
 java.lang.String[] getAllInfoClasses()
          Returns all classes for system information.
 SystemInfoProvider[] getAllSystemInfoProviders(java.lang.String infoClass)
          Returns an array containing all registered SystemInfoProvider for the given information class.
 void registerSystemInfoProvider(java.lang.String infoClass, SystemInfoProvider systemInfoProvider)
          Registers the given SystemInfoProvider for the given information class.
 void unregisterSystemInfoProvider(SystemInfoProvider systemInfoProvider)
          Unregisters the previous registered SystemInfoProvider.
 

Method Detail

registerSystemInfoProvider

public void registerSystemInfoProvider(java.lang.String infoClass,
                                       SystemInfoProvider systemInfoProvider)
Registers the given SystemInfoProvider for the given information class.

Parameters:
infoClass - the info class to register under (not null)

unregisterSystemInfoProvider

public void unregisterSystemInfoProvider(SystemInfoProvider systemInfoProvider)
Unregisters the previous registered SystemInfoProvider.

Parameters:
systemInfoProvider - the SystemInfoProvider to unregister (not null)

getAllInfoClasses

public java.lang.String[] getAllInfoClasses()
Returns all classes for system information.


getAllSystemInfoProviders

public SystemInfoProvider[] getAllSystemInfoProviders(java.lang.String infoClass)
Returns an array containing all registered SystemInfoProvider for the given information class.

Parameters:
infoClass - the information class to get all SystemInfoProvider for (not null)