From a642538ada78d99ee6b7abdd6688c40005100328 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 16 Sep 2010 20:01:20 +0200 Subject: [PATCH] added scm-web-api --- pom.xml | 1 + scm-web-api/pom.xml | 34 ++++++++++++++++ .../src/main/java/sonia/scm/ScmWebPlugin.java | 40 +++++++++++++++++++ .../java/sonia/scm/ScmWebPluginAdapter.java | 29 ++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 scm-web-api/pom.xml create mode 100644 scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java create mode 100644 scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java diff --git a/pom.xml b/pom.xml index 3ed195ef56..96ecef27a1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,7 @@ scm-core scm-cli + scm-web-api scm-server-api scm-server-jetty plugins diff --git a/scm-web-api/pom.xml b/scm-web-api/pom.xml new file mode 100644 index 0000000000..be6363537f --- /dev/null +++ b/scm-web-api/pom.xml @@ -0,0 +1,34 @@ + + + + 4.0.0 + + + scm + sonia.scm + 1.0-SNAPSHOT + + + sonia.scm + scm-web-api + 1.0-SNAPSHOT + scm-web-api + + + + + com.sun.jersey + jersey-core + 1.4-ea06 + + + + com.google.inject + guice + 2.0 + + + + + diff --git a/scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java b/scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java new file mode 100644 index 0000000000..245bdacb1c --- /dev/null +++ b/scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java @@ -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(); +} diff --git a/scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java b/scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java new file mode 100644 index 0000000000..58ec32aedf --- /dev/null +++ b/scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java @@ -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; + } + +}