added scm-web-api

This commit is contained in:
Sebastian Sdorra
2010-09-16 20:01:20 +02:00
parent e1dc4fe382
commit a642538ada
4 changed files with 104 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
<modules>
<module>scm-core</module>
<module>scm-cli</module>
<module>scm-web-api</module>
<module>scm-server-api</module>
<module>scm-server-jetty</module>
<module>plugins</module>

34
scm-web-api/pom.xml Normal file
View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>scm</artifactId>
<groupId>sonia.scm</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>sonia.scm</groupId>
<artifactId>scm-web-api</artifactId>
<version>1.0-SNAPSHOT</version>
<name>scm-web-api</name>
<dependencies>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>1.4-ea06</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,40 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sonia.scm;
//~--- non-JDK imports --------------------------------------------------------
import com.google.inject.Module;
//~--- JDK imports ------------------------------------------------------------
import java.io.InputStream;
/**
*
* @author Sebastian Sdorra
*/
public interface ScmWebPlugin
{
/**
* Method description
*
*
* @return
*/
public Module[] getModules();
/**
* Method description
*
*
* @return
*/
public InputStream getScript();
}

View File

@@ -0,0 +1,29 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sonia.scm;
import com.google.inject.Module;
import java.io.InputStream;
/**
*
* @author Sebastian Sdorra
*/
public class ScmWebPluginAdapter implements ScmWebPlugin {
@Override
public Module[] getModules()
{
return new Module[0];
}
@Override
public InputStream getScript()
{
return null;
}
}