summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-22 00:33:15 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-22 00:33:15 +0100
commit323ace33d564b236e17bce37c8513ee0148aa262 (patch)
tree76197f8c44109aaa24904f30a49fabe91f5c7507 /sonar-batch
parent58d94501900849959346beb5988454122c623470 (diff)
downloadsonarqube-323ace33d564b236e17bce37c8513ee0148aa262.tar.gz
sonarqube-323ace33d564b236e17bce37c8513ee0148aa262.zip
SONAR-3208 new extension point to declare tree of resource types
* new extension point org.sonar.api.resources.ResourceTypeTree * new component org.sonar.api.resources.ResourceTypes to access resource types * fix compatibility of hotspots, clouds and treemaps with PROJECT_MEASURES.PERSON_ID * ApplicationController share ruby methods to load the selected resource
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchModule.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchModule.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchModule.java
index bc7516ae550..d4ebebb4889 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchModule.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchModule.java
@@ -23,6 +23,7 @@ import org.sonar.api.Plugins;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.measures.Metric;
import org.sonar.api.resources.Project;
+import org.sonar.api.resources.ResourceTypes;
import org.sonar.api.utils.ServerHttpClient;
import org.sonar.batch.DefaultFileLinesContextFactory;
import org.sonar.batch.DefaultResourceCreationLock;
@@ -82,6 +83,7 @@ public class BatchModule extends Module {
addCoreSingleton(PastSnapshotFinder.class);
addCoreSingleton(DefaultNotificationManager.class);
addCoreSingleton(DefaultUserFinder.class);
+ addCoreSingleton(ResourceTypes.class);
addCoreMetrics();
addBatchExtensions();
}