| 53 | } |
| 54 | |
| 55 | void Configuration::setPath(String const& path, Json const& value) { |
| 56 | MutexLocker locker(m_mutex); |
| 57 | if (path.splitAny("[].").get(0) == "configurationVersion") |
| 58 | throw ConfigurationException("cannot set configurationVersion"); |
| 59 | |
| 60 | if (value) |
| 61 | m_currentConfig = m_currentConfig.setPath(path, value); |
| 62 | else |
| 63 | m_currentConfig = m_currentConfig.erasePath(path); |
| 64 | } |
| 65 | |
| 66 | } |