T - represents type of a configuration item (allowed types are determined by backing repository)public interface ConfigurationItem<T extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Gets required configuration item.
|
T |
getValue(T defaultValue)
Gets configuration item and specifies a default value in case configuration item is not found.
|
void |
setValue(T newValue)
Sets a new value for the configuration item.
|
T getValue() throws ConfigurationException
ConfigurationException - When configuration item is not found in the repository
(i.e. application requires to have this configuration item)T getValue(T defaultValue)
defaultValue - as default value for itemdefaultValue in case item
is not found in repositoryvoid setValue(T newValue)
newValue - for configuration itemCopyright © 2018 Pivotal Software, Inc.. All rights reserved.