| 42 | } |
| 43 | |
| 44 | void Configuration::set(String const& key, Json const& value) { |
| 45 | MutexLocker locker(m_mutex); |
| 46 | if (key == "configurationVersion") |
| 47 | throw ConfigurationException("cannot set configurationVersion"); |
| 48 | |
| 49 | if (value) |
| 50 | m_currentConfig = m_currentConfig.set(key, value); |
| 51 | else |
| 52 | m_currentConfig = m_currentConfig.eraseKey(key); |
| 53 | } |
| 54 | |
| 55 | void Configuration::setPath(String const& path, Json const& value) { |
| 56 | MutexLocker locker(m_mutex); |