public interface ServiceActions
Modifier and Type | Method and Description |
---|---|
Operation<Void> |
build(String configPid,
Map<String,Object> configs,
boolean keepIfNotPresent)
Creates a handler for persisting changes to a bundle configuration.
|
Map<String,Object> |
read(String configPid)
Gets the current key:value pairs set in the given configuration file.
|
Operation<Void> build(String configPid, Map<String,Object> configs, boolean keepIfNotPresent) throws ConfiguratorException
configPid
- the configPid of the bundle configuration to be updatedconfigs
- map of key:value pairs to be written to the configurationkeepIfNotPresent
- if true, any keys in the current config file that are not in the configs
map will be left with their initial values; if false, they will be removed from
the fileConfiguratorException
- if an error occurs creating the operatorMap<String,Object> read(String configPid) throws ConfiguratorException
configPid
- the configId of the bundle configuration file to queryConfiguratorException
- if an error occurs reading stateThis work is licensed under a Creative Commons Attribution 4.0 International License.