Browse Source

add module sonar-governance-bridge

tags/5.5-M5
Sébastien Lesaint 8 years ago
parent
commit
1c92c5671f

+ 5
- 0
pom.xml View File

@@ -528,6 +528,11 @@
<artifactId>sonar-dev-cockpit-bridge</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-governance-bridge</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.java</groupId>
<artifactId>sonar-java-plugin</artifactId>

+ 1
- 0
server/pom.xml View File

@@ -17,6 +17,7 @@
<module>sonar-server</module>
<module>sonar-views-bridge</module>
<module>sonar-dev-cockpit-bridge</module>
<module>sonar-governance-bridge</module>
<module>sonar-web</module>
<module>sonar-server-benchmarks</module>
</modules>

+ 41
- 0
server/sonar-governance-bridge/pom.xml View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>server</artifactId>
<version>5.5-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>sonar-governance-bridge</artifactId>
<name>SonarQube :: Governance Bridge</name>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>sonar-plugin-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>sonar-core</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 44
- 0
server/sonar-governance-bridge/src/main/java/org/sonar/server/governance/GovernanceBridge.java View File

@@ -0,0 +1,44 @@
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.server.governance;

import org.sonar.core.platform.ComponentContainer;

/**
* Interface implemented by the Extension point exposed by the Governance plugin that serves as the unique access point from
* the whole SQ instance into the Governance plugin.
*/
public interface GovernanceBridge {

/**
* Bootstraps the Governance plugin.
*
* @param parent the parent ComponentContainer which provides Platform components for Governance to use.
*
* @throws IllegalStateException if called more than once
*/
void startGovernance(ComponentContainer parent);

/**
* This method is called when Platform is shutting down.
*/
void stopGovernance();

}

+ 23
- 0
server/sonar-governance-bridge/src/main/java/org/sonar/server/governance/package-info.java View File

@@ -0,0 +1,23 @@
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
@ParametersAreNonnullByDefault
package org.sonar.server.governance;

import javax.annotation.ParametersAreNonnullByDefault;

Loading…
Cancel
Save