aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-08 21:30:14 +0000
committerGodin <mandrikov@gmail.com>2010-12-08 21:30:14 +0000
commit8ea838b32e45f4fb08d1ac3aa8d480a2e0cef7af (patch)
treea363634e6c11e1602261efa14bf9499fa1adc55c /sonar-server
parent85ad745aaee19225e0abbb11abd167e39a8b1e95 (diff)
downloadsonarqube-8ea838b32e45f4fb08d1ac3aa8d480a2e0cef7af.tar.gz
sonarqube-8ea838b32e45f4fb08d1ac3aa8d480a2e0cef7af.zip
* SONAR-1809: MetricFinder should be available on server side
* Fix javadocs
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/platform/Platform.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/platform/Platform.java b/sonar-server/src/main/java/org/sonar/server/platform/Platform.java
index e17b9e1bac0..bd25a77c12a 100644
--- a/sonar-server/src/main/java/org/sonar/server/platform/Platform.java
+++ b/sonar-server/src/main/java/org/sonar/server/platform/Platform.java
@@ -38,6 +38,7 @@ import org.sonar.api.rules.XMLRuleParser;
import org.sonar.api.utils.HttpDownloader;
import org.sonar.api.utils.IocContainer;
import org.sonar.api.utils.TimeProfiler;
+import org.sonar.core.components.DefaultMetricFinder;
import org.sonar.core.components.DefaultModelFinder;
import org.sonar.core.components.DefaultRuleFinder;
import org.sonar.core.plugin.JpaPluginDao;
@@ -68,9 +69,9 @@ public final class Platform {
private static final Platform INSTANCE = new Platform();
- private MutablePicoContainer rootContainer;//level 1 : only database connectors
- private MutablePicoContainer coreContainer;//level 2 : level 1 + core components
- private MutablePicoContainer servicesContainer;//level 3 : level 2 + plugin extensions + core components that depend on plugin extensions
+ private MutablePicoContainer rootContainer;// level 1 : only database connectors
+ private MutablePicoContainer coreContainer;// level 2 : level 1 + core components
+ private MutablePicoContainer servicesContainer;// level 3 : level 2 + plugin extensions + core components that depend on plugin extensions
private boolean connected = false;
private boolean started = false;
@@ -105,7 +106,6 @@ public final class Platform {
}
}
-
private void startDatabaseConnectors(Configuration configuration) {
rootContainer = IocContainer.buildPicoContainer();
ConfigurationLogger.log(configuration);
@@ -180,6 +180,7 @@ public final class Platform {
servicesContainer.as(Characteristics.CACHE).addComponent(AnnotationRuleParser.class);
servicesContainer.as(Characteristics.CACHE).addComponent(XMLRuleParser.class);
servicesContainer.as(Characteristics.CACHE).addComponent(DefaultRuleFinder.class);
+ servicesContainer.as(Characteristics.CACHE).addComponent(DefaultMetricFinder.class);
servicesContainer.as(Characteristics.CACHE).addComponent(DeprecatedRuleRepositories.class);
servicesContainer.as(Characteristics.CACHE).addComponent(DeprecatedProfiles.class);
servicesContainer.as(Characteristics.CACHE).addComponent(DeprecatedProfileExporters.class);