aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-16 13:42:31 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-21 16:44:05 +0100
commit37e32de9c0fb62c14bff9f750332324d542c9cee (patch)
treec0798dc7fd73405849f74f6dd196294bc7598eda /sonar-plugin-api
parenta9a7a8a7a6b0b0aa1b59db3206c668cbf129da7e (diff)
downloadsonarqube-37e32de9c0fb62c14bff9f750332324d542c9cee.tar.gz
sonarqube-37e32de9c0fb62c14bff9f750332324d542c9cee.zip
SONAR-6732 CE must load Settings from DB for each worker
renamed ServerSettings to WebServerSettings and extract from it a ServerSetting interface to be able to easily provide separte implementations for Web Server and CE) CE Server implementation is called ComputeEngineSettings which supports loading up to date Settings for a specific worker using delegation and a ThreadLocal
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java
index 3beb0a9aced..fc5100ce2c4 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java
@@ -110,9 +110,9 @@ public class Settings {
* @since 3.1
*/
public Settings(Settings other) {
- this.properties = Maps.newHashMap(other.properties);
- this.definitions = other.definitions;
- this.encryption = other.encryption;
+ this.properties = Maps.newHashMap(other.getProperties());
+ this.definitions = other.getDefinitions();
+ this.encryption = other.getEncryption();
}
public Encryption getEncryption() {