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

@@ -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;
}
}