|
|||||||||||
| 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.ValueConfigurationDescriptor
| Constructor Summary | |
ValueConfigurationDescriptor(java.lang.Class configurationKeyClass,
java.lang.Object configurationValue)
Creates a new ValueConfigurationDescriptor. |
|
ValueConfigurationDescriptor(java.lang.String configurationKey,
java.lang.Object configurationValue)
Creates a new ValueConfigurationDescriptor. |
|
| Method Summary | |
void |
dispose()
Disposes the component. |
java.lang.String |
getKey()
Returns the key for the configuration entry. |
java.lang.Object |
getValue()
Returns the configuration value. |
boolean |
isLoaded()
Returns true, iff this ConfigurationDescriptor is loaded;
this means, loadConfiguration(ConfigProvider) was called before and
the value can be accessed. |
void |
loadConfiguration(ConfigProvider configProvider)
Loads the configuration, which means, that getValue() might be called.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ValueConfigurationDescriptor(java.lang.String configurationKey,
java.lang.Object configurationValue)
ValueConfigurationDescriptor.
configurationKey - the key of the ValueConfigurationDescriptor (not null)configurationValue - the value of this ValueConfigurationDescriptor (not null)
public ValueConfigurationDescriptor(java.lang.Class configurationKeyClass,
java.lang.Object configurationValue)
ValueConfigurationDescriptor.
configurationKeyClass - the key class of the ValueConfigurationDescriptor
(not null, must implement Configuration)configurationValue - the value of this ValueConfigurationDescriptor
(not null, must implement the given key class)| Method Detail |
public java.lang.String getKey()
ConfigurationDescriptor
getKey in interface ConfigurationDescriptorConfigurationDescriptor.getKey()public java.lang.Object getValue()
ConfigurationDescriptorConfigurationDescriptor
is loaded.
getValue in interface ConfigurationDescriptorConfigurationDescriptor.getValue()public boolean isLoaded()
ConfigurationDescriptortrue, iff this ConfigurationDescriptor is loaded;
this means, ConfigurationDescriptor.loadConfiguration(ConfigProvider) was called before and
the value can be accessed.
isLoaded in interface ConfigurationDescriptorConfigurationDescriptor.isLoaded()public void loadConfiguration(ConfigProvider configProvider)
ConfigurationDescriptorConfigurationDescriptor.getValue() might be called.
The call occures only once, until Disposable.dispose() is called.
loadConfiguration in interface ConfigurationDescriptorconfigProvider - the ConfigProvider, that may be used to access
other values.ConfigurationDescriptor.loadConfiguration(com.sdm.quasar.client.core.common.config.ConfigProvider)
public void dispose()
throws DisposeException
Disposable
Important:
This method is called by an administrating component
and must never be called directly.
The implementation should release any resources or objects allocated and
any services registered. Furthermore, this method should be developed
carefully to free a maximum of resources even when the system may
have become unstable. In case of one or multiple errors, you should collect
them in a DisposeException, continue with the execution,
and throw it at the end of the method.
Note: The implementation must not return before the component is disposed. Any threads or asynchronous calls started must be completed before this method returns.
dispose in interface DisposableDisposeException - if there was one or more errors while
disposing the component.Disposable.dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||