|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.config.services.DefaultConfigProviderService
| Constructor Summary | |
DefaultConfigProviderService(ConfigProvider configProvider)
Creates a new DefaultConfigProviderService. |
|
| Method Summary | |
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. |
Configuration |
getConfiguration(java.lang.Class configurationClass)
Returns the implementation for the given interface class. |
java.lang.Object |
getValue(java.lang.Class interfaceClass)
Returns the Object implementing a given interface. |
java.lang.Object |
getValue(java.lang.String key)
Returns the Object corresponding to the given configuration key. |
boolean |
hasConfiguration(java.lang.Class configurationClass)
Returns true, if there is a Configuration stored under the
given configuration key class. |
java.lang.Object |
requireValue(java.lang.Class interfaceClass)
Returns the Object implementing a given interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultConfigProviderService(ConfigProvider configProvider)
DefaultConfigProviderService.
| Method Detail |
public boolean hasConfiguration(java.lang.Class configurationClass)
ConfigProvidertrue, if there is a Configuration stored under the
given configuration key class.
hasConfiguration in interface ConfigProviderConfigProvider.hasConfiguration(java.lang.Class)public Configuration getConfiguration(java.lang.Class configurationClass)
ConfigProvider
getConfiguration in interface ConfigProviderConfigProvider.getConfiguration(java.lang.Class)public java.lang.Object getValue(java.lang.Class interfaceClass)
ConfigProviderServices.
getValue in interface ConfigProviderinterfaceClass - the class of the interface
null if there is no implementation registered for that interfaceConfigProvider.getValue(java.lang.Class)public java.lang.Object getValue(java.lang.String key)
ConfigProviderConfigManager.
getValue in interface ConfigProviderkey - the key to the configuration entry (not null)
null.ConfigProvider.getValue(java.lang.String)public java.lang.Object requireValue(java.lang.Class interfaceClass)
ConfigProviderConfigProvider.getValue(Class), throws an exception if the value
is not contained.
requireValue in interface ConfigProviderinterfaceClass - the class of the interface
ConfigProvider.requireValue(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 | ||||||||||