1. Sebastian Sdorra
  2. scm-manager

Commits

Sebastian Sdorra  committed 86788da

added scm-web-api

  • Participants
  • Parent commits 94789ba
  • Branches default

Comments (0)

Files changed (4)

File pom.xml

View file
   <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>

File scm-web-api/pom.xml

View file
+<?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>

File scm-web-api/src/main/java/sonia/scm/ScmWebPlugin.java

View file
+/*
+ * 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();
+}

File scm-web-api/src/main/java/sonia/scm/ScmWebPluginAdapter.java

View file
+/*
+ * 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;
+  }
+
+}